tests/font: comments: specs only
This commit is contained in:
1 parent
7672980c65
commit
9d80ee11b9
12 files changed
+15
-69
No files matched your search
+1
-5
@@ -1,7 +1,4 @@
|
||||
-- font/eot tests: EOT 1.0 / 2.1 / 2.1 XOR / 2.2 files around DejaVu Sans Mono (TrueType) and Source Sans 3 (CFF) give
|
||||
-- the header fields and the inner font (units per em, glyph count, cmap glyph ids and advances from fontTools); our
|
||||
-- EOT writer round-trips (same font bytes, header from the font's tables), XOR too; MTX is unsupported; errors; the fuzz
|
||||
-- pass. Fixtures: tools/fixtures/eot.py.
|
||||
-- font/eot tests: DejaVu Sans Mono and Source Sans 3 against fontTools (tools/fixtures/eot.py).
|
||||
local T = require("@tests/T")
|
||||
local F = require("@rosetta")
|
||||
local Eot = require("@rosetta/font/eot")
|
||||
@@ -32,7 +29,6 @@ for _, c in Fx.cases do
|
||||
t:eq(font:glyphIndex(g.cp), g.gid, c.name .. ": cmap " .. g.cp)
|
||||
t:eq(font:advance(g.gid), g.advance, c.name .. ": advance " .. g.cp)
|
||||
end
|
||||
-- our writer
|
||||
for _, xor in { false, true } do
|
||||
local out, werr = Eot.encode(font, { xor = xor })
|
||||
t:check(out, c.name .. ": encode: " .. tostring(werr))
|
||||
|
||||
Reference in new issue
Block a user