Windows needs a flag for binary files

This commit is contained in:
Marcel Krüger 2020-07-09 14:53:17 +02:00
parent 071cbe4ce4
commit 6781dabe7b
11 changed files with 18 additions and 18 deletions

View file

@ -68,7 +68,7 @@ local function readpostnames(buf, i, usedcids, encoding)
return newusedcids
end
return function(filename, fontid, reencode)
local file = io.open(filename)
local file = io.open(filename, 'rb')
local buf = file:read'a'
file:close()
local magic, tables = sfnt.parse(buf, 1, fontid)