ws-arch2: eot types

This commit is contained in:
4DBug committed 2026-10-31 15:17:22 -05:00
1 parent e34e32901f
commit b6b7999a63
1 file changed
+2 -2
+2 -2
View File
@@ -155,9 +155,9 @@ function Eot.encode(value: any, opts: EncodeOptions?): (buffer?, Err.Err?)
if not font then
return nil, ferr
end
local tables = TrueType.tables(data, 0, 0, buffer.len(data)) or {}
local tables: { [string]: { number } } = TrueType.tables(data, 0, 0, buffer.len(data)) or {}
local function tab(tagName: string): Bytes.Reader?
local t = tables[tagName]
local t: { number }? = tables[tagName]
return if t then Bytes.reader(data, t[1], t[2]) else nil
end
-- OS/2: PANOSE, weight, fsType, ranges, selection; head: checkSumAdjustment