Improve PK font support
This commit is contained in:
parent
2547bc80e3
commit
fe4f3355f3
5 changed files with 20 additions and 8 deletions
|
@ -192,12 +192,12 @@ local function parse_commands(buf, off, t)
|
|||
until cmd == 245
|
||||
return off
|
||||
end
|
||||
return function(name)
|
||||
local f = assert(io.open(kpse.find_file(name, 'pk', 600), 'rb')) -- TODO configurable dpi
|
||||
return function(filename)
|
||||
local f = assert(io.open(filename, 'rb'))
|
||||
local pk = f:read'a'
|
||||
f:close()
|
||||
local res = {}
|
||||
off = parse_commands(pk, off, res)
|
||||
local off = parse_commands(pk, 1, res)
|
||||
-- assert(off == #pk+1) -- TODO: Check that only fillup bytes follow
|
||||
return res
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue