ShardBrowser icon indicating copy to clipboard operation
ShardBrowser copied to clipboard

Font noise can hide a generic's default face (Consolas): monospace then renders as serif

Open angeloathayde opened this issue 1 month ago • 1 comments

Environment: launcher 2.0.3, engine build 4 (Chromium 152.0.7977.65), Windows 11 host with the stock Windows font set only, Windows preset, no fonts declared, every noise vector enabled.

Summary: with noise.fonts.enabled = true, the seed alone decides a subset of installed families that become unmeasurable. For some seeds that subset contains the face Chromium uses for a generic family — e.g. Consolas — and then monospace renders with the serif face (Times New Roman). No real Windows install shows that, so the noise itself becomes a detectable signal.

Repro (same profile, only noise.fonts changed, page about:blank):

Glyph-width probe: "mmmmmmmmmmlli WwQq0O1I|@#" at 72px; a family counts as present when "<family>", monospace|serif|sans-serif give identical metrics.

noise.fonts monospace serif sans-serif extra families hidden
disabled 989.36×83.70 1109.62×80.23 1171.72×80.03 —
seed 746915924 1109.62×80.23 1109.62×80.23 1171.72×80.03 Consolas, Ink Free, MS Gothic, Myanmar Text, Segoe UI Historic, Webdings
seed 2130774197 collapses onto serif Cambria, Consolas
12 other seeds distinct 0–4 families (Trebuchet MS, Constantia, Wingdings, …), never a generic default
  • 2 of 14 seeds hid Consolas.
  • The hidden set is a function of the seed: the same seed hides the same families on two different profiles on the same host.

Expected: font noise never hides the families Chromium maps the CSS generics to on Windows (Consolas, Times New Roman, Arial, Comic Sans MS, Impact — and probably Segoe UI as the system UI face), so monospace/serif/sans-serif/cursive/fantasy keep their real default faces whatever the seed.

Workaround on our side: measure the seed after launch and re-draw it until those families are present.

angeloathayde avatar Oct 07 '26 00:10 angeloathayde

in v2.1.1

Kr1tos avatar Oct 24 '26 15:10 Kr1tos