McPriv Browser fingerprint & privacy test

Browser Font Enumeration & Entropy

How websites probe installed OS and developer fonts using Canvas text width measurements, why custom fonts raise uniqueness, and how to restrict them.

Installed Fonts
surface
Local
testable on /
2026-11-26
last updated

How Websites Detect Installed Fonts Without a Permission Prompt

Even though browsers removed old Flash-based font lists years ago, JavaScript can still enumerate installed system fonts with high accuracy. A script picks a test string (such as 'mmmmmmmmmmlli10W@#') and measures its rendered pixel width in generic fallback families (monospace, sans-serif, serif) using either DOM bounding boxes or Canvas ctx.measureText().

Next, the script sets the font stack to a candidate font followed by the fallback (for example '72px "JetBrains Mono", monospace') and measures the width again. If the width shifts by even a fraction of a pixel, that font is installed on your operating system. Repeating this loop over 20 to 500 candidate names takes only a few milliseconds and reveals your OS family, regional language packs, creative suites like Adobe, and developer tools.

Why Extra Fonts Dramatically Increase Uniqueness

In Peter Eckersley's foundational Panopticlick study (EFF 2010) and follow-up large-scale measurements by Gomez-Boix et al. (WWW 2018), installed font lists ranked among the highest-entropy browser traits on desktop computers. Standard OS defaults group millions of users together, whereas installing Microsoft Office, Adobe Creative Cloud, LaTeX, or niche coding fonts like Fira Code or JetBrains Mono creates rare combinations.

On mobile devices (iOS and Android), users rarely install system-wide font packs, so font entropy is much lower. You can check how many of 22 common OS and developer fonts your current browser exposes on the McPriv Browser Fingerprint Test, and see how that interacts with Canvas text rasterization.

How to Restrict Font Enumeration Per Browser

The cleanest fix for font fingerprinting is restricting web content to a standardized allowlist of base system fonts while still permitting normal web fonts (@font-face) downloaded by sites.

  • Firefox: Open Settings -> Privacy & Security -> Strict Enhanced Tracking Protection. Firefox limits font visibility to standard base OS fonts on sites with fingerprinting protection enabled (controlled internally by layout.css.font-visibility).
  • Brave: Open brave://settings/shields -> Block fingerprinting. Brave restricts locally installed non-system fonts from being enumerated by web scripts and randomizes font metric readback in Strict mode.
  • Safari: Safari on macOS and iOS exposes only built-in system fonts to web pages, hiding user-installed custom fonts automatically without breaking typography.
  • Chrome and Edge: Allow web pages to probe user-installed local fonts via CSS and Canvas fallback measurement. Keeping fewer custom local fonts installed or using Firefox, Safari, or Brave reduces this surface.

Limitations of Font Probing Tests

McPriv probes 22 representative Windows, macOS, Linux, and developer fonts so the scan finishes in milliseconds without blocking your main thread. Commercial tracking scripts sometimes test hundreds of fonts, so a high count on our 22-font sample is a strong signal that a much larger local font list is visible.

Note that blocking web fonts (@font-face) with content blockers does not stop local font enumeration; in fact, disabling remote web fonts can break icon fonts and reduce usability without hiding local fonts. Focus on browser-level local font visibility restrictions instead.

Inspecting Font Visibility Levels in Firefox and Chromium

Under the hood, Firefox controls local font exposure with the preference layout.css.font-visibility. Level 1 exposes only base operating system fonts (the smallest, most uniform set); Level 2 adds standard language-pack fonts; Level 3 exposes every user-installed font on the system. Under Firefox Strict Enhanced Tracking Protection or privacy.resistFingerprinting, Firefox automatically drops web content down to Level 1 or Level 2 so custom creative, corporate, or developer fonts stay invisible to scripts.

You can test the immediate difference on our standalone Font Fingerprint Test. On a developer workstation running default Chrome, the probe frequently lights up 10 to 16 fonts including Consolas, Fira Code, JetBrains Mono, and Calibri. Opening the exact same URL on the exact same computer in Safari, Brave Shields, or Firefox Strict ETP typically trims that list down to standard system defaults without visibly degrading any normal website layout.

Local Font Access API and CSS Fallback Probing

Besides Canvas ctx.measureText() and DOM offsetWidth probes, Chromium also introduced the Local Font Access API (window.queryLocalFonts()), which lets design apps like Figma read local font tables after an explicit user permission prompt. Always deny local font permissions on sites that do not genuinely need desktop typography access.

Keep in mind that CSS fallback probing requires zero permissions and works even if queryLocalFonts() is never called. That is why auditing your installed font packs periodically, avoiding unnecessary system-wide font bundles on machines used for sensitive browsing, and using a browser with a built-in system-font allowlist remain the most dependable defenses against font-based tracking.

Sources & Further Reading

Guide FAQ

Does restricting local fonts break website designs?

No. Websites still load their own typography via CSS @font-face web fonts; restricting local font visibility only hides extra fonts installed on your computer.

Why did McPriv detect macOS or Windows fonts on my device?

Every operating system ships a default font bundle (such as Segoe UI on Windows or Helvetica Neue on macOS), which immediately signals your OS family.

How many fonts does Safari hide automatically?

Safari hides user-installed custom fonts from web content and exposes only the standard OS font list, keeping Apple devices in a larger shared anonymity set.