Declared `fonts` on a Windows desktop profile drops installed, declared families (Constantia, MS UI Gothic, Wingdings)
Environment: ShardX Launcher 2.0.2, Windows 11 pt-BR with stock fonts only (no Office / third-party fonts), engine Chromium 152.0.7977.65 build 3, desktop profile from a bundled win-* preset.
What I did
- With no
fontsblock in the profile, measured the Windows-owned font families visible to a page (glyph-width probe of"<family>", monospace|serif|sans-serifat 72px): 63 families present. PATCH /profiles/{id}withfingerprint.fonts= those 63 families as one-family groups ([["Arial"],["Calibri"],…]) minus three installed families I wanted hidden (Impact,Comic Sans MS,Georgia).- Measured again.
Result
- The three undeclared families became unmeasurable even though they are installed — the pin works on a desktop profile, not only on mobile ones. 👍
- Three families that were declared and are installed on the host also became unmeasurable:
Constantia,MS UI Gothic,Wingdings. Nothing else changed (no family gained, the other 57 declared ones still measure as before).
A Windows 11 machine that has Impact but not Constantia/Wingdings is an anomaly a font-enumeration fingerprint can flag, so the pin cannot be adopted for desktop profiles until the declared set round-trips exactly.
Question / suggestion
How does the engine match a declared family name to a host face — by the CSS family name as reported by DirectWrite, by the registry name (Constantia (TrueType)), by the file, case-sensitively? Wingdings is a symbol-charset font and MS UI Gothic a CJK-with-Latin face, so a matcher that requires the face to cover the probe's Latin glyphs, or that reads the localized/typographic family name, would explain the loss. A documented list of the exact names the engine expects (or a launcher command that prints the host's declarable family names) would make desktop fonts pins safe to use.
in v2.0.3
Re-measured on 2.0.3 / engine build 4 (Windows 11, stock fonts only), same procedure: baseline 63 Windows-owned families measurable → fonts = those 63 minus Impact, Comic Sans MS, Georgia (one-family groups) → measure again. Result unchanged from 2.0.2: the three undeclared families are hidden (good), but Constantia, MS UI Gothic and Wingdings — declared and installed — are still unmeasurable (57 present instead of 60). Nothing in the 2.0.3 patchlog mentions fonts, so I assume this closed by mistake; reopening. The three are a serif with a small-caps/ligature-heavy face, a CJK face and a symbol face — a matcher that checks glyph coverage of the probe string or reads the typographic (nameID 16) family instead of the legacy one would explain the set.
It is not closed by mistake, it is possible to specify your fonts in profiles. Fonts are supplied out of the box only for android profiles, because they are static. For Windows, millions of font variations and installed fonts in the library would connect all browser users, despite a little noise.
Agreed on not shipping Windows font lists in presets — I was not asking for that; the report is about what the engine does with a fonts set the operator declares. And a correction on my side first: "unmeasurable" was partly my probe's fault (it compared a family against the generic fallback, so a family that becomes the fallback reads as absent). Re-measured on build 4 with a fallback-independent probe (same family over monospace/serif/sans-serif, present ⇔ identical metrics), 72 px, string mmmmmmmmmmlli WwQq0O1I|@#, all families installed on the host (stock Windows 11, verified in HKLM\...\Fonts):
| family (declared, installed) | no fonts block |
fonts declared (74 stock families, one per group) |
|---|---|---|
| Arial | 1172×81 | 1172×81 (unchanged) |
| Segoe UI | 1188×96 | 1188×96 (unchanged) |
| Calibri | 1115×88 | 1358×86 |
| Constantia | 1195×88 | 1123×88 |
| MS UI Gothic | 1025×72 | 1172×80 (= Arial) |
| Wingdings | 1669×81 | 1188×96 (= Segoe UI) |
| Impact / Georgia / Comic Sans MS (installed, not declared) | present | absent ✓ |
So the hiding works, but declared families that the machine really has are no longer drawn with their own file: Calibri, Constantia, MS UI Gothic and Wingdings come out with stand-in metrics, while Arial and Segoe UI keep the real ones. That is the "widths are the stand-in's" case from the README applied to fonts that are installed — and a page holding a table of real Windows widths (Calibri especially) sees a machine that has Calibri by name but not by shape.
Expected: a declared family that exists on the host renders with the host's file; the stand-in only for declared names the host lacks. Is the matcher perhaps keyed on something other than the DirectWrite family name for these (all four are multi-face or symbol/CJK families)?