sparkles:font — Testing and evidence
Oracles, acceptance scenarios and the evidence ledger for the requirements in SPEC.md. Each requirement is checked against an implementation that shares no code with this library, or against traces worked by hand.
Oracle independence
The library's correctness claims are checked against implementations that share no code with it. The table says which oracle backs which requirements and why it is independent.
| Oracle | Independent because | Checks |
|---|---|---|
| HarfBuzz's own OpenType parsers | A separate C++ implementation, reached from D tests by extern(C) | upem and glyph count; name strings (hb_ot_name_get_utf8); coverage (hb_face_collect_unicodes); cmap lookups; axes and normalization; advances and metrics; outlines; layout features; resolved MATH, BASE, vertical metrics and GDEF carets where exposed |
| FreeType | A separate C implementation of parsing and rasterization | per-pixel coverage of unhinted renders (FTR3); CFF outlines as a second opinion; line metrics, vertical-metric presence, avar axis-count and colour-table rules (variation-metrics.md § 9) |
| fontTools (developer machines only) | A separate Python implementation; the reference most tools copy | raw fields HarfBuzz does not expose, including MATH assemblies, BASE records, vertical tables and JSTF; committed goldens record the generating command and font hash |
| fontations (developer machines only) | A separate Rust implementation (read-fonts, skrifa) that, like this library, evaluates variations in integer fixed point | item variation store deltas and normalization where HarfBuzz rounds or uses floating point; uncovered MATH glyphs; line-metric decorations (skrifa); committed goldens record the generating command, crate revision and font hash |
| Hand-derived traces | Worked from the OpenType and CSS specifications by hand | normalization arithmetic; cmap selection; line-metric rule; physical conversion and arithmetic exhaustion; cluster source partitions in both directions; math-kern height selection and connector constraints; CSS matching; PNG filter reversal |
| Hostile-input fixtures | Built by a test-only byte builder, with expectations from the trust contract, not from the parser | every FTB* limit and failure kind |
HarfBuzz is also the shaping engine (FTX1), so it cannot be an independent oracle for shaping itself. Recorded hb-shape output through a separate call path can check wrapper compatibility, but forwarding checks alone do not establish consumer correctness. Context, source-coverage and reusable-cut scenarios below also check observable source partitions and compare actual full/fragment shaping under explicit boundary conditions. FontTools/hand traces independently establish table semantics; no shaping-engine differential is called independent.
Differential tests inherit upstream defects. A disagreement is a finding to triage, not automatically this library's bug; triaged upstream divergences are listed in the ledger with the HarfBuzz or FreeType revision.
Corpus
Bundled fonts. The
sparkles-fontspackage (Maple Mono NF CN, Fira Code Nerd Font Mono, DejaVu Sans Mono, Uiua386, the Noto Sans script set including variable faces, Noto Color Emoji; about 180 faces). Exposed to tests as$SPARKLES_FONTS_PATH, a derived-package variable set by the dev shell. Tests needing it skip when it is unset, and a gate that requires corpus evidence is unmet until a run with it set passes.Committed fixtures. Small fonts and malformed byte sequences built by a test-only byte builder,
libs/font/test/sparkles/font/fixtures.d, so the parser's unit tests run with no environment.System fonts are never a test input: they differ between machines.
Test corpus. Faces tested against but not shipped,
sparkles-font-test-corpus(nix/packages/font-test-corpus.nix), exported as$SPARKLES_FONT_TEST_CORPUS: variableCFF2, vertical-metrics andJSTFfaces at its top level; realBASEtables inbase/(Adobe's CJK template on both axes, a horizontal axis alone, the variableBASE1.1 of Noto Serif JP VF, script lists withoutDFLT);MATHfaces inmath/(STIX Two Math, KpMath, Garamond-Math and Asana Math with math kerns, Latin Modern Math without); and HarfBuzz's API test fonts inharfbuzz/. Its manifest islibs/font-oracle/test/goldens/manifest.txt.
The corpus holds real math faces with kerns and verified horizontal and vertical BASE faces, pinned by the manifest; real shaping faces whose GSUB/GPOS/GDEF tables exercise ligature merges, marks and caret records are the bundle's. Before accepting a gate, a manifest records file SHA-256, collection index, license, upstream release/source revision, table inventory, selected glyphs/strings, axes, features, direction/script/language, physical em size and expected values with generating commands. A real JSTF corpus face is required for corpus evidence of that table; synthetic table fixtures additionally cover rarely available formats and failures. A missing face, missing table or missing engine capability leaves the corresponding gate unmet, never a zero-case pass. Font versions/feature effects must be inspected, not inferred from a family name. Every shaping run also records base's Unicode release/algorithm manifest and the exact compatible HarfBuzz build.
Author-worked first-delivery traces
These traces were authored for the 2026-10-04 contract extension. They are paper checks of proposed M1 operations, not executed tests, independent review or acceptance evidence. The fixture builder and libs/font remain delivery targets; an adversarial reviewer must challenge these traces and the eventual implementation must reproduce their outcomes.
Successful borrowed open and lookup. Construct a 422-byte TrueType fixture: the 12-byte sfnt header declares three directory records; head is at offset 60, length 54; maxp at 116, length 32; cmap at 148, length 274. The two bytes between head and maxp are padding. Use a valid version-1 head with units-per-em 2048 and magic 0x5F0F3CF5, version-1 maxp with two glyphs, and a version-0 cmap with one platform-3/encoding-1 record pointing to a format-0 subtable of length 262. That subtable maps U+0041 to glyph 1 and every other entry to glyph 0. Set the sfnt search fields for three records and all remaining required fields to their legal fixture values.
Opening face 0 reads the directory and required fixed headers; it returns a borrowed immutable face with upem 2048 and glyph count 2, without decoding the cmap glyph array (FTP5). A subsequent lookup maps U+0041 to 1 and U+0042 to 0. Raw head access is exactly the source slice [60,114), not a copy. A name query returns missingTable; collection face index 1 returns indexOutOfRange, without replacing the face already opened at index 0. The caller must retain the entire source buffer until that face and all borrowed results are destroyed.
Exact-end and one-byte-short boundary. In the same fixture, 148 + 274 = 422, so cmap ends exactly at the buffer boundary and opening is valid. Borrow only the first 421 bytes while keeping the declared record unchanged: the checked cmap offset/length no longer fits, so FTP3 reports badOffset and opening fails because cmap is required. It must not read byte 421, construct a partially usable face or turn the hostile truncation into an assertion.
Optional-table failure stays local. Extend the directory to four records and relocate the three valid tables by 16 bytes, giving a 438-byte buffer. Add a name record at offset 438 with length 2. Its range is invalid, but the required tables remain valid: opening succeeds, reading name reports badOffset, and the directory inspector still enumerates its tag/offset/length. An absent name record instead reports missingTable; these outcomes must not be conflated.
Strict name-decoding failure. A UTF-16BE name payload 00 41 D8 3D DE 00 decodes to U+0041 followed by U+1F600, encoded as UTF-8 41 F0 9F 98 80. Replace its final pair with 00 42: D8 3D is then an unpaired high surrogate, so strict base decoding returns invalidEncoding at that surrogate's table-relative byte offset and publishes no partial name. The neighboring valid record remains readable and the malformed raw payload remains inspectable (FTP8, FTA11, FTA15).
Requirement scenarios
Parsing (FTP1–FTP12)
- For every bundled face: open succeeds;
upem, glyph count, everynamerecord, coverage ranges, andcharMap.glyphfor every covered codepoint equal HarfBuzz's answers. - For each collection in the corpus and a committed two-face collection: the face count, and each face's
nameID 4, equal HarfBuzz's; index = count isindexOutOfRange. - Signature cases: WOFF and WOFF2 signatures give
unsupportedVersion; four random bytes givenotAFont. cmapselection: a committed font with both a format-4 and a format-12 subtable mapping one codepoint to different glyphs selects format 12.FTP12: Maple Mono NF CN reportsdual, DejaVu Sans Monomono, Noto Sansproportional.FTP8/FTA15: a name-record fixture decodes BMP and supplementary-plane UTF-16BE exactly, including a valid surrogate pair. Isolated high/low surrogates, a reversed pair and an odd byte count produceinvalidEncodingat the offending record offset with decoded-output sentinels unchanged; a neighboring valid record still decodes and malformed raw bytes remain inspectable.
Variation normalization
For every axis of every variable bundled face, at the minimum, default, maximum and 17 evenly spaced user values: normalized F2Dot14 values equal hb_ot_var_normalize_coords. Hand-derived traces cover an avar map with a non-identity segment and a clamp beyond the axis range.
Metrics and publication data (FTM1–FTM7, FTP13)
For every bundled face, the three vertical sets, x-height, cap height, underline and strikeout equal the oracles of variation-metrics.md § 9 (FreeType for line metrics, skrifa for decorations, HarfBuzz where they agree) at upem scale; at a variable face's extreme instances, advance deltas equal fontations' compute_delta exactly, and advances equal hb_font_get_glyph_h_advance within 0.5 unit wherever HarfBuzz does not clamp them at zero. FTM5's cell metrics are checked against hand-computed values for DejaVu Sans Mono and Maple Mono at 14, 16 and 18 px. Pixel convenience outputs remain fractional and their cell-rounding behavior remains separately checked.
FTM6: measure real shaped runs at a 12-point physical em, then rasterize at 96 and 192 dpi. Physical advances and offsets must be identical, while the explicit pixel scale doubles. Compare design-unit advances to a recorded engine result at upem scale, then apply a hand-computed physical conversion. Use a selected variable face at its minimum/default/maximum coordinates; compare physical variation deltas, not just the unvaried default.- Keep ink and advance distinct: measure a space, a zero-advance combining mark, and an audited programming ligature with overhang. Assert the measured advance and independently measured ink extent for each pinned face/glyph; no
ink.width == advanceassumption is admissible. - Conversion fixtures reach positive and negative half-unit ties, the largest representable result and one-unit overflow, and a design sum that overflows 64 bits (
FTM8); the conversion product itself cannot overflow base's 128-bit intermediate. Assert ties-to-even and structured exhaustion with no result publication. Device adjustments apply only under explicit ppem; an identical design query without ppem must not inherit a previous device-size query's delta. A hand-derived two-advance fixture contributes half aLayoutUnitper glyph: individual ties round to zero, but the exposed run total must be one unit because it converts the design sum once. The design-position scale must permit layout to reproduce that result without adding rounded glyph advances. FTM7: compare a real vertical face's glyph advance/origin at two sizes and instance extremes to recorded HarfBuzz results; compareBASEtags, scripts, default indices, languages and coordinate formats to fontTools goldens. A fixture has a valid zero baseline beside an absent baseline; assert distinct outcomes. Reference-point coordinates are resolved against the M3 outline point, not treated as the record's nominal coordinate. Device and variation records, malformed offsets and absentBASE/vmtxare separate scenarios.FTP13: for the pinned math face compare all constants, selected italic corrections, accents, horizontal/vertical variants and assembly-part connector values against fontTools and the resolved HarfBuzz math API. For a glyph with math kerns, query below, at and above each correction-height threshold and compare the table-defined step values. Verify extender flags, minimum overlap and source glyph IDs without composing an assembly in font. Fixtures cover an absent table, absent glyph record, unsupported version, truncated arrays, invalid coverage indices, exactly sufficient storage and one-slot exhaustion.
Outlines (FTO1–FTO5)
oracle.outlines.glyfAndCff compares every glyph of DejaVu Sans Mono (glyf) and Noto Sans Anatolian Hieroglyphs (CFF) at default coordinates. oracle.outlines.variableGlyf compares every glyph of Noto Sans Arabic at weights 100, 250, 650 and 900, including sparse and composite variation data. Both compare segment kinds and coordinates with hb_font_draw_glyph within 1/64 font unit. The FTO4 property over every variable bundled face at all axis extremes remains a separate gate.
Specification-derived fixtures cover both gvar offset widths, invalid axis counts, shared serialized point lists, sparse contour interpolation, nested components and phantom metrics. CFF2 fixtures use 32-bit INDEX counts and EOF termination; Type 2 arithmetic uses the published opcode numbers. Cubic fallback accuracy is checked against the original cubic polynomial, including an S-curve whose midpoint lies on its chord. JSTF fixtures encode the priority count and the count-prefixed extender list, without treating either as another table format. The ImportC ABI checks include the blob memory mode as well as struct layouts.
Raster oracle
For every glyph of four bundled faces at 12, 16, 24 and 48 ppem, unhinted, coverage is compared per pixel with FreeType's FT_LOAD_NO_HINTING normal-mode render, over the pixels either renderer inks. The faces are Fira Code Nerd Font Mono, Noto Sans Arabic, Maple Mono NF CN (TrueType outlines) and Noto Sans Anatolian Hieroglyphs (CFF outlines). Hand-built overlap fixtures, two identical overlapping squares and a glyph whose contours cross, flagged or with the union requested, must render the nonzero union, not a doubled coverage.
Measured distribution. raster-oracle-diff.d ran on 2026-10-04 against FreeType 2.14.3 and HarfBuzz 13.2.1. Flagged overlapping glyphs render at 4×4 (FTX9). Differences are in 1/255 steps; each cell is the largest value over the four sizes.
| Face | FTR3: FreeType flattening vs FreeType, p99 / max | FTR8: 0.02 px vs 0.001 px, p99 / max | Default flattening vs FreeType, p99 / max |
|---|---|---|---|
| Fira Code Nerd Font Mono | 4 / 23 | 4 / 10 | 10 / 33 |
| Noto Sans Arabic | 4 / 20 | 4 / 7 | 12 / 22 |
| Maple Mono NF CN | 3 / 24 | 3 / 13 | 6 / 33 |
| Noto Sans Anatolian (CFF) | 4 / 40 | 3 / 7 | 24 / 53 |
The last column is not a gate. It shows why FTR3 reproduces FreeType's flattening (FTX10): with default flattening, FreeType's coarser cubic subdivision dominates the difference, most visibly on the CFF face. The FTR8 reference has converged: 0.005 px and 0.00125 px renders differ by at most 3 steps.
Tolerance, accepted 2026-10-04 (FTX10). Per face and size; each maximum is the next multiple of 16 above the largest value measured, and each 99th percentile the next multiple of 4.
| Requirement | Outlines | Every pixel within | 99th percentile within |
|---|---|---|---|
FTR3 | TrueType glyf | 32 | 8 |
FTR3 | CFF and CFF2 | 48 | 8 |
FTR8 | all | 16 | 8 |
Unflagged overlaps. The same program compares each unflagged glyph with its 4×4 render. At 24 px, 192 glyphs of Fira Code Nerd Font Mono, 428 of Noto Sans Arabic and 82 of Maple Mono NF CN differ by more than 32 steps; the CFF face has none. These are the glyphs FTR2 lets render with doubled edges, and the font explorer's overlap check lists them.
Light hinting (FTR9). oracle.hinting.lightAgainstFreeTypeAutohint rasterizes the letters and digits of DejaVu Sans Mono and Fira Code Nerd Font Mono at 11 to 16 px unhinted and light-hinted, and compares each with FreeType's auto-hinter in its light mode (FT_LOAD_FORCE_AUTOHINT | FT_LOAD_TARGET_LIGHT), aligned on pen and baseline. The mean per-pixel difference hinted must be at most half the unhinted one, and the rows where a lowercase letter's x-height and baseline land (its first and last rows over half the fullest row's ink) must match FreeType's in nineteen of twenty. Measured on 2026-10-28: 6.9 against 21.6, and 614 of 624 rows (543 unhinted). hinting_test checks the zones, the whole-pixel x-height, that hinted z, H, T and E end in rows as dark as the rows inside them (some do not unhinted), and that nothing horizontal moves.
Colour glyphs (FTR5, FTR7)
- Layers. A fixture face's base glyph layers a 5 × 5 px square in palette entry 0 under a 10 × 5 px rectangle in the foreground (blue at alpha 128); at 10 ppem the left half is (127, 0, 128, 255) and the right half (0, 0, 128, 128), worked from
round(c · a / 255)source-over. Palette 1 turns the square green. Every glyph's layers and everyCPALcolour of the bundle and the test corpus matchhb_ot_color_glyph_get_layersandhb_ot_color_palette_get_colors. - PNG. Hand-built PNGs, stored uncompressed so the expected pixels are the encoded rows, cover each filter type over 4-, 3- and 1-byte pixels, each decoded form with its transparency, and each refusal of
FTR7. - Strikes. Fixture strikes at 20 and 40 ppem fix the choice rule; a 4 × 2 image copies exactly at its strike's size, averages 2 × 2 blocks at half and replicates at double. At ten sizes over the bundle's and HarfBuzz's
CBDTandsbixfaces, each glyph's PNG is the onehb_ot_color_glyph_reference_pngreturns, with HarfBuzz's extents. Every bitmap of the bundled Noto Color Emoji decodes at 16, 48 and 109 ppem.
Hostile input
- Limits. A fixture per
FTB3limit, built one past the limit, returnslimitExceedednaming it; built exactly at the limit, succeeds. - Cycles. A composite glyph referring to itself, and a two-glyph cycle, return
cycle. - Mutation corpus. Seeded byte mutations (bit flips, truncations, offset rewrites) of every committed fixture and three bundled faces, run through every public read operation under AddressSanitizer (
ci test --sanitize address). Seeds and any minimized failing input are committed. Passing means no sanitizer report and no assertion failure; anyExpectederror is acceptable. - No assertions on data (
FTB2): the mutation run is also executed in thecheckedbuild, where assertions are live.
Shaping (FTS1–FTS11)
- Record actual
hb-shapeglyph IDs, offsets and advances for fixed strings in Maple Mono, Noto Sans at twowghtvalues, Noto Sans Arabic and a pinned Indic face. Goldens include full engine/options/face manifests; they verify wrapper compatibility, not independent engine conformance. FTS4: hand-work source spans foraé,e+ U+0301, a merging Latin ligature, Arabic lam-alef in RTL, an Indic conjunct and a default-ignorable-only run. Assert every source byte belongs to exactly one span, repeated glyph cluster starts are permitted, and RTL pen-order starts descend while source spans remain ascending. Verify an empty glyph range still covers its source, and that grapheme boundaries and glyph-cluster boundaries are not equated.FTS7: use an Arabic joining word from the manifest. Shape a middle run with surrounding context and false BOT/EOT, then the same bytes as a standalone word with true BOT/EOT. Record the real change in glyphs/positions; assert context-only bytes emit no glyphs and all cluster offsets remain absolute. Repeat across a style/fallback boundary without claiming a text boundary. Invalid UTF-8, a split multibyte scalar, inverted/out-of-range spans and invalid feature ranges produce their named errors with output sentinels unchanged. Empty runs succeed; exactly sufficient and one-glyph-short capacities distinguish successful committed output fromlimitExceededwith no partial publication.FTS8: coordinated calls preserve explicit direction/script/language even when content would cause standalone guessing to choose differently. Compare Unicode callback values for newly assigned and algorithm-sensitive characters to base's pinned goldens. A manifest with an uncovered internal-engine Unicode/version mismatch must be rejected before output; changing a system library without changing the accepted profile must not silently shape. Callback success alone cannot make this gate pass.FTS9: for each actual Arabic/Indic/ligature sample, shape the complete run and both fragments at each source boundary. Reusable boundaries with unchanged context must reproduce glyphs, positions and total advance when recombined. For an unsafe break, reshape fragments with their actual line flags and record changed output rather than cutting the old glyph array. Check unsafe-concat on separately shaped joining fragments and tatweel capability hints; absence, unknown boundaries and merged-cluster interiors never become reusable cuts.FTS10: inspect a real face with GDEF carets. Assert glyph/cluster association, record order, point/coordinate provenance and resolved variable/device values against independent table traces; a face without carets returns absence, not synthesized equal spacing. Synthetic fixtures cover all three caret formats, bad point indices, truncated device tables and caller-capacity exhaustion.FTS11: on a real face whose inspected feature changes a selected run, measure both feature alternatives with actual context. Record the differing glyphs and advances and compare them to the engine goldens; nominal advances or ink widths cannot be substituted. Compare a realJSTFrecord to fontTools; fixtures cover absent and malformed priority/extender data. An unsupported execution mode reportsunsupportedCapability, not unchanged output labelled justified.FTS6: a unittest-only ImportC file includeshb.hand the D declarations;static asserts compare sizes andoffsetofper field.
Discovery and fallback (FTD1–FTD7)
Matching steps are checked against hand-derived traces of CSS Fonts Level 4 §5.2 over a synthetic family of nine weights and two widths, plus a variable family whose ranges must give the same answers as its expanded static faces (FTD27); each step's search order has a trace, and the score and synthesis of FTD28–FTD29 are asserted with it.
Records (FTD16–FTD21) are built from fixture faces whose name, OS/2, fvar and cmap are chosen per field, and from the bundle, whose family, style, weight, width and coverage are compared with fc-scan. The same sources built on 1, 2 and 8 workers give identical records. A platform source on Linux lists what fc-list lists; a missing library path is reported and the other sources still build.
Cache scenarios (FTD22–FTD24) run on MemVfs, whose modification times are exact: a second build reads no font file; touching, replacing, adding and deleting a file re-describes or drops exactly that file; a foreign magic, an unknown version, a wrong length and a wrong hash each discard the whole cache; an unwritable cache leaves the build successful and reported.
Chains (FTD31–FTD34) are checked with fixtures of known coverage: entry order, a route answering only in its ranges, a repeated record kept as a route, emoji and text presentation choices, and a chain identity that changes with any input. The box-drawing face (FTD35–FTD38) opens with openFace, shapes through HarfBuzz, and rasterizes each glyph at 8, 16 and 24 px to the coverage its rule gives, by hand-computed pixel counts for the lines, blocks and shades.
Pruning (FTD40) is checked as a property against shaping: for every bundled face and every scalar the rule prunes it for, alone and in sampled sequences (followed by a mark, a variation selector, a second scalar), in both horizontal directions, hb_shape gives glyph 0. The review's counterexamples are fixtures: e U+0323 U+0302 against a face with only U+1EB9 and U+1EC7, Thai U+0E33 against a face with U+0E4D and U+0E32, a base with a format-14 variant outside the character map's ranges, and a face whose ccmp single substitution maps glyph 0 to a drawn glyph are each not pruned and shape. Trial keys (FTD43) differ when any context byte the shaper reads or the run's offset differs, and agree when a byte beyond five scalars differs.
Boundaries and failures with their own scenario: a request value outside its range (badValue), a primary that matches nothing (no box-drawing entry), a file replaced after the build (stale on first open), a store whose box face is rebuilt at a new ppem while a result borrows the old one, a ppem of 16,384 and 16,385, a name of 1,024 and 1,025 bytes, a symbolic link to a font outside the source's directory with and without ambient authority, a 41-link chain, and a platform library path that does not exist. A Regular and Italic pair requested normal, and a family with only a −10° oblique requested italic, are traced for FTD27.
For FTD7, use primary/fallback real faces with inspected coverage of a mark sequence, an emoji variation/ZWJ sequence and an RTL word. Force a failed primary trial, then assert a successful complete-span trial reports its face/instance, source partition and missing-glyph outcome accurately. A face with cmap coverage but unsuitable sequence shaping cannot count as successful solely from coverage. The requested span is never silently subdivided; an all-faces-fail case reports the exact unresolved span. Grapheme/unsafe-cluster boundary selection is tested in the owning text-layout integration, not duplicated as font segmentation. Include a primary and a secondary with identical or subset cmap coverage where only the secondary realizes the requested sequence under the declared shaping policy. The secondary must remain in the whole-span trial list and succeed even if the scalar-lookup coverage index prunes it; assert the actual selected face, glyphs, source coverage and policy outcome, not merely candidate-list membership.
Compatibility quirks (FTD8–FTD12)
Each quirk is checked against the engine it follows, on a face that triggers it and on near misses. The fonts most of them recognize may not be redistributed, so their signatures are rebuilt by the fixture byte builder: tables padded to the listed lengths, values set to the listed values, and for FTD12 table checksums brought to the listed ones by a final word.
FTD9: HarfBuzz's ownMathTestFontPretendToBeCambria.ttf(the test corpus'sharfbuzz/) reports the two minimum heights ashb_ot_math_get_constantdoes, with the quirk's identifier; with quirks disabled it reports them as stored. A fixture one byte off the length, or one unit off either value, triggers nothing.FTD10: for a fixture per blocklisted length triple (or a sample of them with the full list checked against the pinned source's), every glyph's class and caret equals HarfBuzz's (hb_ot_layout_get_glyph_class,hb_ot_layout_get_ligature_carets): absent, with the identifier; a triple one byte away reads the storedGDEF. The Microsoft faces in the opt-in unfree corpus are checked when a version there matches a listed triple.FTD11: a fixture with a symbolcmapover the private-use codes of each page and anOS/2version 0fsSelectionof0xB200and0xB300maps every Arabic scalar of the page ashb_font_get_nominal_glyphdoes, and its character coverage lists them;OS/2version 1 falls back to the ordinary symbol mapping, and another high byte to direct lookups without the U+F000 duplication, ashb_font_get_nominal_glyphdoes.FTD12: fixtures named after each tricky family, and fixtures whosecvt,fpgmandprepmatch a listed face, are recorded as requiring bytecode exactly when FreeType'sFT_IS_TRICKYsays so; the rasterizer refuses them withunsupportedCapability, and a fallback trial shows the requirement in the candidate's record.FTD8: every entry's results carry its identifier and its face records list it; the registry's signatures are read in O(1) per entry at open (counted through a recording byte source), and no entry reads a file hash.
Consumer migration (FTA12–FTA14, FTA16)
FTA12: grep checks overlibs/raylib-text/for.cfiles and for imports of HarfBuzz, FreeType or font parsing.FTA13: the Android APK derivations build in CI, and a manual emulator run shows bundled text and emoji (manual evidence, recorded with the commit).FTA14:hueandterminalscreenshot goldens, captured locally underxvfbbefore and after the migration on the same commit pair. CI cannot run these; the evidence is a recorded local run.FTA16: retain the auditedFTX7fast-path captures, then exercise a merging ligature, zero-advance mark, RTL run and multi-cell source span through general cluster placement. Compare pen positions and redraw damage to actual advance and ink measurements. A one-glyph-per-source-cell counterexample must render correctly without enabling the audited fast path.
Configurations
| Configuration | Runs |
|---|---|
dub test :font | parser, variation, metrics, outlines, raster, hostile-input fixtures |
dub test :font --config=engine-unittest | the above plus shaping and every HarfBuzz/FreeType differential |
ci test --sanitize address | the mutation corpus under AddressSanitizer |
local, xvfb | consumer screenshot goldens |
Linux is the primary configuration. macOS runs the library tests in CI; Windows runs them where the Windows leg builds the package.
Feasibility evidence
Experiments run before the specification was accepted, each answering a question an architectural choice depends on. They establish only what they checked, on the configuration that ran them.
| Question | Evidence | Result |
|---|---|---|
| Can D drive HarfBuzz with no C shim? | harfbuzz-shape-features.d, outline-sink-raster.d | Yes: opaque handles plus five plain structs, run by ci examples standalone. |
| Is an accumulation rasterizer small enough to own? | outline-sink-raster.d | A 71-line core renders correct coverage for Noto Sans and Maple Mono at 28 px. Spike S2 extends it to every glyph of four faces at four sizes (§ Raster oracle). |
| Do programming ligatures break a cell grid? | ligature-cells.d, 160 sequences in eight faces | No glyph-count change and no off-cell advance in Cascadia Code, JetBrains Mono, Fira Code and Maple Mono, plain and Nerd Font builds; ink reaches up to 6 cells past its own cell (FTX7). |
| Does variation change contour topology? | outline-sink-raster.d on Noto Sans g at wght 100 and 900 | No for that glyph: 2 moves, 8 lines, 31 quadratics at both ends. FTO4 makes it a corpus-wide property. |
| Is a synchronous catalog build fast enough? | font-scan-timing.d over fc-list and the bundle | Yes: 2,222 desktop files in 44 ms warm, 20 ms on 4 workers, 1.6 s on first touch; the 180-file bundle in 1.9 ms (FTX8). |
Does Phobos provide zlib's inflate without an extra library? | nm on LDC 1.42's libphobos2-ldc.a | Yes: inflate and inflateInit2_ are defined in its inflate.c.o member. |
| Is the bundled emoji font outline-free? | The table directory of the bundled NotoColorEmoji.ttf | Yes: CBDT, CBLC and no glyf, which is why FTR7 exists. |
Evidence ledger
Entries are added here as milestones land, each naming requirement IDs, source revision, command, configuration and remaining gap, per the spec guideline. The M1 rows below come from the M1 series of 2026-10-06 (libs/font, libs/font-oracle), run on Linux x86_64 with LDC 1.42 and DMD, with $SPARKLES_FONTS_PATH set to the sparkles-fonts bundle of that revision (180 outline faces). The M2 rows come from the M2 series of 2026-10-14, run the same way against HarfBuzz 13.2.1 over 182 bundled faces, and on an arm64-v8a phone. The M2 gates series of 2026-10-26 closes M2's open gates against HarfBuzz 14.6.0: the test corpus's BASE and MATH faces under its manifest, fontations goldens (read-fonts 0.46.0, skrifa 0.49.0), fontTools BASE goldens, and hb-shape goldens at a variable face's minimum, default and maximum. The M6 series of 2026-10-27 adds colour glyphs, checked against HarfBuzz 14.6.0 and hand-worked fixtures.
The 2026-10-04 text-foundation extensions are otherwise planned/unverified: apart from the M2 rows for FTP13, FTM6 and FTM7, which are scoped to the faces and gaps they name, no listed test command or proposed API in this page is claimed to exist or to have run for FTA16 or FTD7. FTS7–FTS11 have the evidence of the M4 row below: the bundled faces, recorded hb-shape goldens with their face hashes, and the FTS8 internal-table demonstration against the pinned HarfBuzz source. The bundle holds no JSTF table; SIL's Scheherazade New and Lateef do, and are checked against fontTools in the test corpus, as are Microsoft's unfree core fonts when their opt-in corpus is built. Existing research measurements do not certify these requirements.
| Requirement | Revision | Command | Result | Gap |
|---|---|---|---|---|
FTP1–FTP5, FTP14–FTP22, FTP33, FTI5 | M1 series | dub test :font (face_test) | pass: the 422-byte trace, exact-end and one-byte-short, local badOffset, signatures, required tables, the 4,096-record limit, offset overflow, duplicate tags, a two-face collection, checksums | The bundle has no collection file; collections are covered by the committed fixture only. |
FTP7, FTP12, FTP23, FTP24, FTP32, FTI1 | M1 series | dub test :font (tables_test) | pass: every view and version length, hmtx leniency, spacing; on the bundle Maple Mono NF CN is dual, DejaVu Sans Mono mono, Noto Sans proportional; FTI1 holds by construction: each view is a plain struct in tables.d whose fields carry the OpenType names (version spelled version_), so it needs no test of its own | — |
FTP9, FTP10, FTP25–FTP27 | M1 series | dub test :font (cmap_test); dub test :font-oracle | pass: every format, choice and fallback, symbol and Mac Roman lookups, effective spans, counters, format 14; ranges() equals glyph() over all of Unicode on five bundled faces; every codepoint either side maps agrees with HarfBuzz on all 180 faces | Overlapping format-4 segments do not occur in the bundle; they are covered by fixtures only. |
FTP8, FTP28, FTP29, FTA15 | M1 series | dub test :font (names_test); dub test :font-oracle | pass: UTF-16BE through base's adapter, including the surrogate trace; Mac Roman and its excluded variants; every name HarfBuzz decodes on all 180 faces matches a record | — |
FTP11, FTP30, FTP31 | M1 series | dub test :font (glyph_names_test); dub test :font-oracle | pass: post 1.0, 2.0, 2.5, 3.0, CFF charsets 0–2 and predefined, CID-keyed; the index equals direct lookup for every glyph; every glyph HarfBuzz names on all 180 faces has the same name | The oracle found post 2.0 indices above 32,767 in Maple Mono NF CN; FTP30 was corrected to accept them. |
FTB1–FTB3, FTA9–FTA11 | M1 series | dub test :font (hostile_test); the same with DFLAGS="-fsanitize=address" | pass: 1,600 mutants of four fixtures and 120 of three bundled faces through every public read, in the debug build and under AddressSanitizer, with no assertion or report | Outline and colour limits of FTB3 belong to M3 and M6. |
FTA1, FTA6 | M1 series | dub build :font; dub test :font with LDC and DMD | pass: the library configuration builds with no C library; all public reads are @safe under -preview=dip1000 | — |
FTA7 | M1 gaps series; 0f503a62e | nix build .#font-android-tests, then adb push and run on an emulator and a phone | pass: the library sources and their tests cross-compile for arm64-v8a and x86_64 with the static D runtime, needing only the NDK's libc, libm, libdl and liblog; run by sparkles:test-runner, on an x86_64 API 36 emulator with five bundled fonts pushed: 52 passed, 0 failed, threaded and with -t 1; without the fonts the five corpus tests skip. On an arm64-v8a phone (Xiaomi 2107113SG, Android 14, API 34), built from 0f503a62e: the same 52 passed, threaded and with -t 1, and the same five skips without the fonts | — |
FTA2 | M1 gaps series | dub test :font (concurrency_test) | pass: one Face and its CharMap shared by a std.parallelism pool; four rounds over all 12,780 glyphs of Fira Code Nerd Font Mono (character mapping, hmtx advance, glyph name) equal a single-threaded pass | No race detector has checked it: a ThreadSanitizer build (-fsanitize=thread) of the suite ran past 25 minutes without a result, and the cause was not established. |
FTA3, FTV1–FTV11 | M2 series | dub test :font (instance_test); dub test :font-oracle (oracle.variations.normalize) | pass: every FTV7 row; FTV8–FTV10 hand traces, including avar end-cap trimming, the zero tie and the version-2 delta clamps; 1,738 coordinate vectors over 79 axes of 55 variable faces equal hb_ot_var_normalize_coords exactly | No bundled face hits a § 9 divergence (axis order, avar axis count, a decreasing map, duplicated tags), so those paths are checked by fixtures only. |
FTV12–FTV14, FTM8–FTM14 | M2 series; M2 gates series | dub test :font (units_test, variations_test, metrics_test); dub test :font-oracle (oracle.metrics.advances, oracle.fontations.agrees) | pass: every FTV12 row in order, per-axis rounding, delta-set maps, Device and VariationIndex cases, 20,000 random exact-rational-to-double conversions, ties-to-even and exhaustion; at 388 instances, 314,842 advances equal HarfBuzz exactly at the default and 105,674 within 0.5 unit elsewhere; at 852 instances of 132 faces (the bundle, the test corpus and HarfBuzz's test fonts), 785,910 HVAR advance and VVAR advance and origin deltas (117,983 nonzero) and every MVAR delta equal fontations' to the last 1/65,536 unit | Dangling references are checked by fixtures only (§ 9); fontations and HarfBuzz resolve them differently. |
FTM1–FTM5, FTM15–FTM19 | M2 series | dub test :font (metrics_test); dub test :font-oracle (oracle.metrics.lineMetricsAndDecorations) | pass: every FTM16 branch, the set chosen on stored values, the MVAR tag mapping and the cell rounding table; 711 line-metric and 1,412 decoration values at 237 instances agree with HarfBuzz; DejaVu Sans Mono and Maple Mono cell metrics at 14, 16 and 18 px equal a hand derivation | FreeType and skrifa, the substitute oracles of § 9, have not run; no bundled face exercises a listed divergence. |
FTM6 | M2 series; M2 gates series | dub test :font (units_test, metrics_test); dub test :font-oracle (oracle.shaping.FTM6.physicalMeasurement) | pass: ties to even, a run of two half-tick advances converting once to one tick, and identical physical values at 96 and 192 dpi; Noto Sans shaped at 12 points at wght 100, the default and 900, with kerning and a mark's offset: design values equal recorded hb-shape at upem, 90 physical values equal a hand conversion, each run total converts once (2 of 3 totals differ from the sum of rounded advances), the same run at 16 and 32 ppem has the same design values while pixels double from 96 to 192 dpi, and a space, a mark and Maple Mono's [ERROR] ligature keep ink and advance apart | — |
FTM7, FTM20–FTM24 | M2 series; M2 gates series | dub test :font (vertical_test, baseline_test); dub test :font-oracle (oracle.vertical.advancesAndOrigins, oracle.baseline.agreesWithHarfBuzz, oracle.baseline.agreesWithFontTools, oracle.fontations.agrees, oracle.corpus.manifest) | pass: every FTM20–FTM24 row; 226,959 vertical advances of 20 faces, 208,529 VORG origins of 12 faces and 14,403 top-phantom-point origins of glyf faces agree with HarfBuzz, the bundle's with the test corpus's Adobe Blank VF (CFF2 and glyf) and Source Han Sans VF at the default, the axis maxima and a third of the way up: 8,192 varied advances (4,096 fractional, within HarfBuzz's whole-unit rounding) and 496 VVAR-varied origins; on the 23 BASE faces of the manifest's corpus, 1,700 baselines and the one real MinMax record's 6 extents agree with HarfBuzz (exactly at the default, within 0.5 unit at the variable faces' extremes, 432 instances), 16,754 absent baselines agree, 36 axes, 132 scripts, 429 coordinates and the MinMax record equal fontTools' reading, and every probed coordinate equals fontations' at every instance, VariationIndex deltas included; fixtures cover records out of sort order | No corpus face has a format 2 coordinate or a FeatMinMax record, so those are checked by fixtures only. HarfBuzz's base-minmax.ttf, which has no cmap, is read with an empty one added. The bundled variable faces' vmtx advances are all zero; the varied vertical advances come from the test corpus. |
FTP13, FTP34–FTP38 | M2 series; M2 gates series | dub test :font (math_test, coverage_test); dub test :font-oracle (oracle.math.values, oracle.fontations.agrees, oracle.corpus.manifest) | pass: every FTP35–FTP38 row and the hostile sweep; on 13 MATH faces (Noto Sans Math; STIX Two Math, KpMath, Garamond-Math, Asana Math and Latin Modern Math from the manifest's corpus; HarfBuzz's MathTestFont*), 446 constants, 3,932 italics corrections, 11,612 top accents, 28,918 extended-shape flags, 4,149 kern tables with 9,822 lookups below, at and above every correction height and past both ends, 4,696 variants and 462 assemblies agree with HarfBuzz; every glyph's italics correction, top accent and kern table of the 10 faces with MathGlyphInfo equals fontations', uncovered glyphs included; fixtures cover corners sharing one MathKern and a height count past the table | No corpus face has a math kern whose heights do not ascend, so that case is checked by fixtures only. |
FTI2, FTI3, FTI7–FTI9 | M2 series | dub test :font (layout_test); dub test :font-oracle (oracle.layout.scriptsFeaturesLookups, oracle.layout.substitutionGlyphs) | pass: 269 tables, 584 scripts, 859 language systems and 7,647 feature lookup lists equal HarfBuzz's; the 5,212 GSUB lookups of types 1–4 (174,149 records) cover exactly the glyphs hb_ot_layout_lookup_collect_glyphs reports | The 2,133 contextual and reverse lookups are checked by fixtures only. |
FTI4, FTI10 | M2 series | dub test :font (colour_test); dub test :font-oracle (oracle.colour.capabilities) | pass: every row and edge; 910 flags agree with HarfBuzz; Noto Color Emoji reports CBDT | Only one bundled face has a colour table: COLR, sbix and SVG are checked by fixtures only. |
FTB1–FTB3, FTA9–FTA11 for M2 tables | M2 series | dub test :font, and the same with DFLAGS="-fsanitize=address" | pass: every-prefix truncation and byte mutation of every M2 table, with no assertion and no AddressSanitizer report | Under that DFLAGS, druntime's default runner runs the tests instead of sparkles:test-runner, for every package; the runner's skips are not exercised there. |
FTA7 for M2 | M2 series | nix build .#font-android-tests, then adb push with the whole bundle and run on an arm64-v8a phone (API 34) | pass: 272 passed, 0 failed, threaded and with -t 1 | — |
FTO1–FTO5, FTI6, FTB3/FTB5 (composites, subroutines) | M3 series | dub test :font (outlines_test), and the same with DFLAGS="-fsanitize=address"; dub test :font-oracle (oracle.outlines.glyfAndCff, oracle.outlines.variableGlyf, oracle.outlines.cff2Variable, oracle.outlines.variationKeepsTopology) | pass: every glyph of DejaVu Sans Mono and of the 113 bundled CFF faces (82,790 glyphs) within 1/64 font unit of hb_font_draw_glyph, a zero-length closing line aside, and drawGlyph driving a sink with exactly those segments; Noto Sans Arabic at four nondefault weights; every glyph of the six CFF2 test faces (Source Serif 4, Source Sans 3, Adobe Blank VF and Source Han Sans VF's first face, $SPARKLES_FONT_TEST_CORPUS) at the default and at each axis extreme (233,063 glyph instances), a closing line within 1/64 unit of zero length skipped as HarfBuzz omits it (Source Han Sans VF's blended deltas leave one 1/65,536 unit open); FTO4 for every glyph of the 55 bundled and 7 test variable faces (103,088 glyphs) at each axis extreme; fixtures for CFF2 vsindex/blend through the variation store, CFF hints, the flex operators, seac, Type 2 arithmetic, DICT reals, subroutine cycles (FTB5), the depth and operation limits, composite depth, component and point limits, OVERLAP_COMPOUND, nested point matching, unsigned point numbers, SCALED_COMPONENT_OFFSET, gvar tuple data and 32-bit deltas, vmtx phantom points and any-attribute sinks; every prefix and byte mutation of CFF, CFF2, glyf and gvar fixtures with no assertion and no AddressSanitizer report | — |
FTA4, FTA8, FTS1–FTS11 | M4 series | dub test :font -c engine-unittest (shaping_test); dub test :font (carets_test, jstf_test, variations_test); dub test :font-oracle (oracle.shaping.FTS8.manifest, oracle.shaping.FTS8.callbacks, oracle.shaping.FTS8.defaultIgnorables, oracle.shaping.hbShapeGoldens, oracle.carets.agreeWithHarfBuzz, oracle.layout.hbStructs, oracle.layout.hbConstants, oracle.layout.hbPrototypes, oracle.jstf.agreesWithFontTools, and with $SPARKLES_FONT_UNFREE_CORPUS oracle.jstf.unfreeAgreesWithFontTools); goldens from dub run --single libs/font-oracle/tools/gen_shaping_goldens.d and libs/font-oracle/tools/gen_jstf_goldens.d -- test (or -- unfree); nix build .#font-engine-android-tests, then adb push with the bundle and run on an arm64-v8a phone | pass against HarfBuzz 14.6.0 (source revision c7a7457b7385f33178e8cf87615ca077a810bbe7) and base's Unicode 18.0.0. FTS8: the profile check rejects another engine and another base release; every generated internal table of the pinned source names Unicode 18.0.0 but the USE table's DerivedCoreProperties 17.0.0, whose Default_Ignorable_Code_Point set equals 18.0.0's at every code point; base's six Unicode callbacks equal HarfBuzz's own at all 1,114,112 code points; HarfBuzz's hand-coded default ignorables, shaping each scalar alone, equal base's but for the Hangul fillers and U+1BCA0–1BCA3 that hb-unicode.hh exempts. FTS1: recorded hb-shape output for Maple Mono NF CN, Noto Sans at wght 300 and 800, Noto Sans Arabic and Noto Sans Devanagari (face SHA-256s in test/goldens/shaping.txt) is equal exactly at static instances and within one unit at variable ones, where HarfBuzz rounds deltas; shaped advances equal the FTM18 advance within 1/2,048 unit at wght 300, 437 and 800. FTS4: the hand-worked spans of aé, e + U+0301, e + U+0331 (two spans, one grapheme), a default-ignorable-only run, Noto Sans fi, lam-alef as two rlig glyphs, a Devanagari conjunct, and RTL order. FTS7: context changes Arabic forms; BOT adds a dotted circle; every validation error and short output leaves sentinels unchanged; exact capacity commits. FTS8: explicit properties stand against Arabic content; U+1E09 decomposes one step on Uiua386. FTS9: fragments recombine at every reusable boundary of Arabic, Latin and Devanagari samples, unsafe ones change when reshaped, and Arabic joins are unsafe to concatenate. FTS10: the carets of the five bundled faces with GDEF carets equal hb_ot_layout_get_ligature_carets at the default and the wght extremes; a shaped fi's carets carry its glyph and cluster; malformed fixtures publish nothing. FTS11: every JSTF priority record, whole lists, malformed data distinct; unsupported modes refused; the real records of the four Scheherazade New and seven Lateef weights (script arab, two extender glyphs, one of them absAutoKashida, which no character maps to, no language system) equal fontTools 4.63.0's reading, as do, in the opt-in corpus, those of Arial, Arial Bold, Times New Roman and Times New Roman Bold (five extender glyphs). Vertical runs: advances and origins are the library's — Noto Sans Ethiopic at three weights, a CFF face's VORG origins exactly, a half-unit VVAR delta that HarfBuzz alone rounds, and Adobe Blank VF's advances from 0 to 1,000 units, fractional a third of the way up (CFF2 and glyf) — and a face without vertical metrics takes HarfBuzz's. FTB3: a run that spends HarfBuzz's operation budget is engineBuffer, never partial (the pinned build's patch; unpatched, 4,103 positioning runs came back short). FTS5: returning a shaper over stack bytes does not compile. FTS6: structs, constants and 48 prototypes against hb.h. FTA7: the engine configuration's 350 tests pass on an arm64-v8a phone (Xiaomi 2107113SG, Android 14, API 34), threaded and with -t 1 | open: no real JSTF record found holds a priority record, which fixtures alone cover; HarfBuzz's structural caps stay silent by design — 64-glyph contexts and syllables, plan-compile limits on scripts, language systems and features, and a sanitizer budget that drops a table too costly to check |
FTA5, FTR1–FTR4, FTR6, FTR8 | M5 series | dub test :font (raster_test); dub test :font-oracle (oracle.raster.freeType, oracle.raster.flatteningAccuracy) | pass: exact square coverage; union vs accumulation on identical contours, on crossing contours with a half-covered subpixel (flagged, unflagged and forceUnion) and on composites flagged OVERLAP_COMPOUND but not SCALED_COMPONENT_OFFSET; byte-identical repeat renders, also through a workspace another glyph dirtied; storage exhaustion and the stride-aware size a short region needs; arithmeticExhausted for a box past 2^27 px; the transfer's exponent. Against FreeType unhinted over every glyph of the four raster faces (Fira Code Nerd Font Mono, Noto Sans Arabic, Maple Mono NF CN with 22,931 flagged glyphs through the 4×4 union, Noto Sans Anatolian Hieroglyphs) at 12/16/24/48 ppem, the worst pixel is 24 steps (glyf) and 40 (CFF) and the 99th percentile at most 4 (tolerances 32/48 and 8); default vs 0.001 px flattening on the same four faces, worst 13 steps and p99 at most 4 (tolerances 16 and 8) | colour (FTR5, FTR7): the M6 row |
FTR5, FTR7, FTR6 for colour, FTB3 (COLR layers) | M6 series | dub test :font (png_test, colour_glyphs_test); dub test :font-oracle (oracle.colour.layersAndPalettes, oracle.colour.strikes) | pass: PNG filters 0–4 each alone and mixed, over RGBA, RGB and 4-bit indexed rows; greyscale and RGB tRNS keys, greyscale with alpha, indexed at 1, 2, 4 and 8 bits with a short tRNS; data split over IDAT chunks of 1–64 bytes; 16-bit and sub-byte greyscale decoded through sparkles:image; refusals of an unknown colour type, a bad signature, truncation, a corrupt Adler-32, short data, an unknown filter, a missing or overrun palette and interrupted IDATs, and each short storage array. COLR layer order, palette selection and the foreground composited to hand-worked bytes, repeat renders byte-identical, and the errors of a palette or entry out of range, a missing CPAL, 1,025 layers, layers past the array and version 2. CBLC index formats 1–5 with image formats 17–19, strike choice at 10–80 ppem and 20.5, an exact copy at the strike's size, 2 × 2 means at half and replication at double, and a truncated PNG located in CBDT; sbix origins, a dupe, a dupe cycle and a jpg record. Every glyph of the bundled Noto Color Emoji (3,985 bitmaps) decodes and inks at 16, 48 and 109 ppem. Against HarfBuzz 14.6.0 over the bundle and the test corpus: 15 layered glyphs (58 layers) and 232 palette colours agree; at ten sizes from 1 to 300 ppem over 13 CBDT or sbix faces, 40,159 PNGs are the bytes HarfBuzz picks and their boxes are its extents to a font unit | no pixel oracle for compositing or strike scaling beyond the hand-worked fixtures; CBLC index formats 2, 4 and 5 are fixture-only (HarfBuzz reads 1 and 3, the corpus has no others); COLR version 1 paint and SVG are not rendered; FTA7 not re-run on a phone for M6 |
FTD1–FTD3, FTD13–FTD24; base's VFO11 | M7 series | dub test :font (catalog_test, catalog_files_test, platform_fonts_test); dub test :font-oracle (oracle.discovery.fontconfigRecords); dub test :base (vfs.check.VFO11.VFM6.mapping); dub test :event-horizon-sys (vfs.blocking.VFB7.mapping) | pass: listing order, skips and recursion; field reads (names by language, weight and width classes, style points); collection members and junk files as outcomes in catalog order; links followed, a file reached twice listed once, a 41-link chain refused; memory sources keyed by BLAKE3; records identical on 1, 2 and 8 workers; cache reuse without reading, touch, replace, add and delete, and each discard reason (magic, version, policy, length, hash, structure). The 182-face bundle builds in 26 ms and reloads from the cache in 6.5 ms; fontconfig lists 2,221 faces on Linux, the same as fc-list. Against fc-scan over the bundle: family, weight, width and coverage agree for all 182 records, slant for 180. A mapped 1 MiB file equals its read on Linux. | macOS's and Windows's platform listings are compiled, not run, until their CI legs; fontconfig reads slant from the style name (§ 9). |
FTD4, FTD25–FTD30 | M7 series | dub test :font (matching_test) | pass: hand traces of every phase of CSS Fonts Level 4 §5.2 step 4 over a family of nine weights, two widths, two italics and an oblique; normal against Regular and Italic; italic against only a backslant; the mirrored negative angles; synthesis thresholds, oblique-only and the tangent table; a variable family matching exactly. | — |
FTD5–FTD7, FTD31–FTD43 | M7 series | dub test :font (fallback_test, box_face_test); dub test :font -c engine-unittest (fallback_trial_test, box_face_shaping_test); dub test :font-oracle (oracle.discovery.boxFace) | pass: entry order with routes, repeats and everything; routes claiming only covered scalars (FTX16); presentation; chain identity; a stale file refused; box faces kept per ppem. The box face's line, block and shade glyphs (765) equal FreeType's pixels at five cells, arcs and diagonals within 2; HarfBuzz maps all 161 covered codepoints. Trials over Noto Sans, Noto Sans Arabic and Noto Color Emoji: an RGI family resolves in the emoji face after a covering text face fails to ligate; an Arabic word and a mark sequence after failing primaries; an uncovered span stays whole and unresolved; candidate limits and bytecode policy. The pruning rule, over every third scalar to U+2FFFF in four bundled faces and both directions, never prunes a scalar HarfBuzz draws; the review's counterexamples are not pruned. | Layout does not yet split spans at routes; text-layout does that (FTX16). |
FTD8–FTD12, FTD44–FTD46 | M7 series | dub test :font (corrections_test); dub test :font-oracle (oracle.corrections.*) | pass: against HarfBuzz 14.6.0, Cambria's swap on its own test font and fixtures with near misses; all 40 GDEF blocklist triples and 120 near misses (800 glyph classes and carets); 46,068 character lookups under 11 OS/2 variants, 1,050 through a code page; against FreeType 2.14.3, FT_IS_TRICKY on 306 fixtures of names and table signatures. The registry's data equals the pinned HarfBuzz source's. Microsoft's Arial and Times New Roman (opt-in corpus): 5,280 glyph classes agree. | The O(1) recognition of FTD44 is shown by reading, not by a counting byte source. No redistributable face triggers FTD10–FTD12; fixtures rebuild their signatures. |
FTD47–FTD51 | Editor fonts series | dub test :font (families_test, families) | pass: synthetic families give real members only (no faux bold; 600 counts as bold; a forward oblique is italic, a backslant is not); DejaVu Sans Mono's four files are its four members; Roboto is proportional with no italic; the bundle's monospace families are exactly DejaVu Sans Mono, FiraCode Nerd Font Mono, Maple Mono NF CN and Uiua386 (Noto Color Emoji and SignWriting share one advance but have no letters); Source Serif 4 Variable declares wght and opsz, its bold the roman face at wght 700; Fira Code and Maple Mono declare ligatures, a face without GSUB none; bounds clamping and control states. | Ligature support is read from the face's bytes, so a catalog-only picker reports it unknown. |
FTA7 for M7 | M7 series | nix build .#font-android-tests .#font-engine-android-tests, run on an arm64-v8a phone (Android 14) with the bundle pushed | pass: 390 of 391 library tests and 419 of 421 engine tests, the rest skipped for corpora not pushed; the catalog over /system/fonts lists 207 files into 218 records in 62 ms, one unreadable file reported. | Not run on an x86_64 emulator. |