ws-arch2: font/fon (Windows FNT 2 / 3, NE and PE .fon resources, several strikes; read) with FontForge-made fixtures vs FreeType

This commit is contained in:
4DBug committed 2026-10-31 15:08:49 -05:00
1 parent 19f486031d
commit 7e792a6ae8
7 files changed
+375 -5

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ function B.compare(t: any, font: any, ref: any, label: string)
local gi = font:glyphIndex(g.cp)
local img = font:rasterize(gi, 16)
local tag = string.format("%s U+%04X", label, g.cp)
t:check(gi > 0 or font.bitmap.default == 0, tag .. ": mapped")
t:check(img, tag .. ": rasterize")
if img then
t:eq(img.width, g.width, tag .. ": width")