Installed font detection (and Flash fonts)
Measures text width to guess which fonts are installed.
In one line
Can measure text widths to guess which fonts are on your device
Measures text width to guess which fonts are installed.
Font lists reflect installed apps, languages and OS version. Flash font enumeration was another method before Flash ended in 2020.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Compare text width across many font names
- Guess which fonts you installed
- Learn your system, languages and sometimes installed apps
It cannot
- Open your font files
- Ask permission first
- Use the old Flash method, which ended in 2020
- Know who you are by itself
Browser support
| Browser | Status | First version | Note |
|---|---|---|---|
| Chrome | Supported | Not available | None |
| Edge | Supported | Not available | None |
| Firefox | Supported | Not available | None |
| Safari | Supported | Not available | None |
| Safari on iPhone | Supported | Not available | None |
| Chrome on Android | Supported | Not available | None |
| Samsung Internet | Supported | Not available | None |
How a site asks for it
| API | Measure text in offscreen elements; Flash getFontList (obsolete) |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Script reads the value
- Value joins the fingerprint payload
Data you get
What comes back: Installed font detection (and Flash fonts)
Shape: list
How often: static per setup
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
fonts | list | None | up to 1500 chars collected | by name |
Technical limits
- Flash is gone since 2021
- Some browsers limit fonts to a fixed list
The story
What it is
A script measures text width to guess which fonts are installed on your device.
For you
You see no sign of it. The page tries many fonts and measures the text, so it knows which ones you have. People with design or office apps tend to have a more unusual list.
For makers
Sites use font checks to decide what to load and to match designs. Ad tech and fraud teams use the font list as a classic trait to tell devices apart.
Where you see it
| Type | Example | Apps |
|---|---|---|
| creative | A web design tool lists the fonts on your computer so you can use them in your design. | Figma, Canva |
| productivity | A document editor shows which fonts it will substitute because they are not on your device. | None named |
| ads | An ad script records which fonts you have as a part of an anonymous device ID. | None named |
| security | A bank's fraud tool compares the font list to the last visit to see if it is the same machine. | None named |
| shopping | A site loads its own web font only if a close match is missing, to speed up the page. | None named |
| analytics | A visitor tool separates Mac and Windows users partly by the default fonts found. | None named |
| games | A browser game with a text editor for custom names lists fonts so players can style a team badge. | None named |
Risks
- Reveals software you own
- Works without asking
What the platform says
- Google Chrome: Local Font Access API. Chrome offers a permission based way for apps to read installed fonts, instead of guessing by measuring.
Good uses and abuse
Legitimate uses
- Pick fonts
Known abuse
- Fingerprint input
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 9 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): fonts, fontsFlash. dataLimit 1500.
History
- 2021-01, Chrome 88: Flash removed
Related capabilities
Related
- APFC / DNA device fingerprint (abuse prevention features). Can collect about 48 device traits and send them in secret with later requests
Sources
How well checked: Based on official documentation.