Fonts
In both browsers, fonts are set through the fonts config property or the fonts= launch option.
| Property | Type | Browsers | Description |
|---|---|---|---|
fonts |
array | Both | Allowlist of font families pages may see. Any family outside it, including local() in @font-face, behaves as not installed. In Camouwolf the gate is on the family names a CSS font list asks for: the generic families and web fonts fall through, and document.fonts.check is gated too. |
The drawn font list
Each identity gets the font list of one plausible machine for the OS it claims, and the launcher fills fonts with it.
In Camoufox, the list is:
- one OS-version base, drawn by weight: Windows 11 on Windows; macOS Sonoma, Tahoe (26) or macOS 27; Ubuntu 24.04 or 26.04 on Linux (see
font-bases.json); - plus add-on groups drawn at the rate they are installed on real machines, such as Microsoft Office's fonts on Windows (see
font-groups.json).
The draw is seeded by the identity, so one identity always sees the same fonts. When the identity claims the host's own macOS or Windows, the real system fonts are used and only the OS base is claimed. The full lists per OS are in fonts.json.
Camouwolf
The list is the fingerprint's own font list plus the essential fonts of its OS, kept to the families the bundled fonts can render. The browser uses its own fontconfig, which leaves out the host's fonts, and a Windows identity always has Segoe UI.
Passing fonts
In Camoufox, fonts=[...] (or the fonts key) replaces the drawn list rather than adding to it. custom_fonts_only=True also turns off the fonts bundled with the browser, so only the fonts you pass are available; it prints a warning, and raises an error if no fonts are given.
Camouwolf
fonts=[...] adds to the drawn list instead of replacing it. custom_fonts_only=True uses only the fonts you pass; it prints a warning, and raises ValueError if no fonts are given.
with Camoufox(fonts=["Arial", "Calibri"], custom_fonts_only=True) as browser:
...with Camouwolf(fonts=["Arial", "Calibri"], custom_fonts_only=True) as browser:
...New fonts
Camoufox only
Fonts are bundled in group folders (L, M, W, LM, LW, MW, LMW, by the OS that has them) inside Camoufox's fonts/ directory, and only the groups for the identity's OS are read; a file placed directly in fonts/ is not. You can also install fonts on your system. Either way, a new font is only visible to pages when it is in the fonts allowlist.
Fonts are drawn as whole real-world groups, because a partial group is something no real machine has. Avoid passing a random subset of fonts.
Font Metrics
Removed in Camoufox
fonts:spacing_seed and the random letter-spacing offset were removed in 156.0.1-beta.32.
Text widths are now what the font really measures, because widths no real machine produces are a
fingerprint of their own.
Camouwolf
Text metrics are the font's own by default. canvas:quantizeTextMetrics (see Miscellaneous) rounds canvas measureText widths to the 1/64 px grid that FreeType and DirectWrite use. It is off by default.