Fix file name

This commit is contained in:
Marcel Krüger 2020-06-16 21:17:43 +02:00
parent 1be299f4f1
commit 88effdc8dd
4 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ function myfunc(buf, i0, fontid, usedcids, encoding, trust_widths)
if encoding == true then -- Use the built-in encoding if encoding == true then -- Use the built-in encoding
CharStrings = parse_encoding(buf, i0, top.Encoding, CharStrings) CharStrings = parse_encoding(buf, i0, top.Encoding, CharStrings)
elseif encoding then elseif encoding then
encoding = require'parseEnc'(encoding) encoding = require'luametalatex-font-enc'(encoding)
local encoded = {} local encoded = {}
for i, n in pairs(encoding) do for i, n in pairs(encoding) do
encoded[i] = CharStrings[n] encoded[i] = CharStrings[n]

View File

@ -42,7 +42,7 @@ return function(filename, reencode)
reencode = kpse.find_file("8a.enc", "enc files") reencode = kpse.find_file("8a.enc", "enc files")
end end
if reencode then if reencode then
parsed_t1.Encoding = require'parseEnc'(reencode) parsed_t1.Encoding = require'luametalatex-font-enc'(reencode)
end end
-- parsed_t1.Encoding[0] = ".notdef" -- parsed_t1.Encoding[0] = ".notdef"
local glyphs = {} local glyphs = {}

View File

@ -83,7 +83,7 @@ return function(filename, fontid, reencode)
return function(fontdir, usedcids) return function(fontdir, usedcids)
if reencode and string.unpack(">I4", buf, tables.post[1]) == 0x00020000 then if reencode and string.unpack(">I4", buf, tables.post[1]) == 0x00020000 then
usedcids = readpostnames(buf, tables.post[1] + 32, usedcids, require'parseEnc'(reencode)) usedcids = readpostnames(buf, tables.post[1] + 32, usedcids, require'luametalatex-font-enc'(reencode))
else else
usedcids = table.move(usedcids, 1, #usedcids, 1, {}) usedcids = table.move(usedcids, 1, #usedcids, 1, {})
end end