mirror of
https://github.com/daijro/camoufox.git
synced 2026-11-19 00:07:28 +00:00
camoufox-bin started without the launcher's config claims no OS, so its fonts must be the host's plus Twemoji Mozilla, the font stock Firefox bundles. Up to 158.0.1-beta.41, Linux added fonts/ to fontconfig recursively and so registered every OS's font set. A bare launch then resolved Segoe UI, Lucida Console and Cambria Math under a Linux User-Agent. Akamai's detectOSFontsSignal reads that as Windows (1 where stock gives 5), and sans-serif measured 99 px high where stock measures 98. #997 changed font-hijacker.patch to add only the directory's own files, which fixed this, but no test covers it. The guard launches the binary twice: once as shipped, and once on a profile with gfx.bundled-fonts.activate=0, which registers nothing from fonts/. Every family in fonts.json and each generic's 72 px span must measure the same in both. The only exception is Twemoji Mozilla, which must render only in the default launch. The pref goes in prefs.js because the font list reads it once, at startup. On 158.0.1-beta.41 it fails: 646 extra families, and sans-serif is 99 px high. On a main build (159.0-beta.35) it passes. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>