tests/font: comments: specs only

This commit is contained in:
4DBug committed 2026-11-01 01:51:09 -05:00
1 parent 7672980c65
commit 9d80ee11b9
12 files changed
+15 -69

No files matched your search

+1 -6
View File
@@ -1,7 +1,4 @@
-- font/type1 tests (and codecs/font/GlyphNames): Latin Modern PFB fonts and a PFA (t1ascii) against fontTools
-- (outline control boxes, areas, advances of sample glyphs including flex, hint replacement, seac accents and
-- ligatures; code points from glyph names) and FreeType's unhinted renders (PSNR); errors; the fuzz pass.
-- Fixtures: tools/fixtures/type1.py.
-- font/type1 tests (and codecs/font/GlyphNames): Latin Modern against fontTools and FreeType (tools/fixtures/type1.py).
local T = require("@tests/T")
local F = require("@rosetta")
local Type1 = require("@rosetta/font/type1")
@@ -37,7 +34,6 @@ local function area(cmds: any): number
end
local function psnr(img: any, r: any): (number, number)
-- union of both bitmaps, aligned on the pen position
local ax0, ay0 = img.meta.left, -img.meta.top
local bx0, by0 = r.left, -r.top
local x0, y0 = math.min(ax0, bx0), math.min(ay0, by0)
@@ -65,7 +61,6 @@ local function psnr(img: any, r: any): (number, number)
return 10 * math.log10(255 * 255 / (se / n)), ink
end
local worst = 99
local samples = {}
for _, c in Fx.fonts do