Skip to Content
Fingerprint ProtectionFont Fingerprinting

Font Fingerprinting

Installed fonts and font rendering differ across platforms. BotBrowser protects against font-based tracking with consistent metrics and cross-platform rendering.


Prerequisites


Quick Start

chromium-browser \ --bot-profile="path/to/profile.enc"

Overview

Font availability and rendering behavior differ across operating systems, locales, and installations. Font metrics, glyph shapes, and sub-pixel positioning all vary across platforms. BotBrowser provides consistent font behavior through built-in font bundles and cross-platform rendering at the browser engine level.

WebKit-family profiles also preserve profile-backed local font behavior, generic font defaults, and platform-appropriate emoji fallback when they run across supported hosts.

Desktop profiles resolve generic monospace and fantasy families from their target desktop font buckets. Mobile profile buckets keep their own values. Font weight selection uses the recorded face weight rather than the host’s bold trait, which keeps named weights and variable faces aligned across hosts.

Chrome macOS profiles use the target system’s CoreText fallback order when they run on another host. Mobile WebKit profiles use their own platform fallback lists. This covers default, common, symbol, emoji, and regional font selection, not only the family names in the profile.

Text measurement follows the target browser engine as well. DOM and Canvas measurements use the target’s font-size precision, intrinsic-size rounding, synthetic weight behavior, and variable-font instance selection. A desktop or mobile target can therefore return different fractional bounds for the same family and text without exposing the host renderer. Profiles using --bot-fonts=real keep the host browser’s font and measurement path.


Configuration

Font Mode

Control font behavior with the --bot-fonts flag:

# Use profile's embedded fonts (default) --bot-fonts=profile # Use profile fonts with system font fallback --bot-fonts=expand # Use real system fonts (no protection) --bot-fonts=real

ClientRects and Text Metrics Noise

BotBrowser applies deterministic noise to font measurement APIs:

# Enable ClientRects noise (disabled by default) --bot-noise-client-rects=true # Enable text rects noise (disabled by default) --bot-noise-text-rects=true

Noise Seed

Use --bot-noise-seed for reproducible font metrics:

--bot-noise-seed=42

Cross-Platform Font Rendering

BotBrowser addresses cross-platform font consistency through built-in font libraries and rendering engine integration:

Built-in font bundles:

  • Each profile includes the complete set of standard fonts for its target platform.
  • Font availability and enumeration results match what the target OS would report.

Rendering engine:

  • Built-in rendering aligns glyph output with the profile’s target platform; pixel-level rasterization differences can remain.
  • Built-in text shaping aligns text layout, ligature handling, and complex script rendering across supported platforms; some layout measurements can differ.

Result: Profile-backed font inventory and rendering controls support cross-platform consistency without guaranteeing identical output for every text measurement or glyph. Keep --bot-fonts=profile for profile font policy; expand permits host font fallback, and real uses host-system fonts.

Regional CJK text, emoji rendering, and system UI typography use the profile’s target-platform defaults across supported hosts. Compare exact measurements with the profile and host pair you deploy.

FontFace and Fallback Behavior

Profile-backed font handling covers FontFace local sources, request-by-name loading, and multilingual fallback. Windows-target profiles keep their font renderer preferences with the active BrowserContext, including per-context sessions running on another host platform. Windows-profile text shaping on Linux hosts preserves profile font spacing and kerning in the final layout result.

Keep --bot-fonts=profile when the profile font inventory and fallback policy should remain authoritative. Use expand only when the workflow intentionally allows host fallback beyond the profile bundle.


Effect Verification

To verify protection is active:

  1. Launch BotBrowser with a profile and visit a fingerprint testing site such as BrowserLeaks or CreepJS.
  2. Confirm that the reported font list and text metrics match the profile configuration, not the host machine.
  3. To verify reproducibility, launch two sessions with the same profile and --bot-noise-seed on the same host path, then compare the affected font measurements.

Troubleshooting / FAQ

ProblemSolution
Font list shows host system fontsEnsure --bot-fonts=profile is set. The real mode disables font protection.
CJK text renders with missing glyphsVerify the profile includes appropriate CJK fonts. Windows and macOS profiles include CJK support by default.
A local FontFace name resolves differently across hostsUse --bot-fonts=profile and a BotBrowser 150 profile package so local and request-by-name font handling follows the profile inventory.
Font metrics differ between headless and headful modeCompare the same profile and flags first. Layout mode and host rendering can still change some pixel or fractional metrics.
ClientRects values vary between sessionsUse --bot-noise-seed for reproducible measurements. Without a fixed seed, noise varies per session.

Next Steps


Related documentation: Advanced Features: Cross-Platform Font Engine | Advanced Features: Multi-Layer Fingerprint Noise


Legal Disclaimer & Terms of Use • Responsible Use Guidelines. BotBrowser is for authorized fingerprint protection and privacy research only.


Related BotBrowser blog: Font fingerprinting across platforms

Updated