ws-arch2: pcf type annotations

This commit is contained in:
4DBug committed 2026-10-31 14:58:09 -05:00
1 parent 87cbc62fb6
commit 1b0bc158e8
1 file changed
+2 -2
+2 -2
View File
@@ -123,7 +123,7 @@ function Pcf.decode(r: Bytes.Reader, opts: DecodeOptions?): (any, Err.Err?)
end
end
-- accelerators: ascent / descent
local ascent, descent = nil, nil
local ascent: number?, descent: number? = nil, nil
local at = open(r, tables[BDF_ACCELERATORS] or tables[ACCELERATORS])
if at then
at.r:skip(8)
@@ -191,7 +191,7 @@ function Pcf.decode(r: Bytes.Reader, opts: DecodeOptions?): (any, Err.Err?)
end
end
end
local glyphs: { Types.BitmapGlyph } = table.create(nm)
local glyphs: { Types.BitmapGlyph } = {}
for k = 1, nm do
local m = metrics[k]
local w, h = m[2] - m[1], m[4] + m[5]