Windows needs a flag for binary files
This commit is contained in:
parent
071cbe4ce4
commit
6781dabe7b
11 changed files with 18 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue