diff --git a/src/Formats/font/pcf/init.luau b/src/Formats/font/pcf/init.luau index a9fe873..e46cc9a 100644 --- a/src/Formats/font/pcf/init.luau +++ b/src/Formats/font/pcf/init.luau @@ -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]