Local Font Access API browser support
Published Updated
window.queryLocalFonts() returns a promise for an array of FontData objects describing the fonts installed on the user’s device, behind a local-fonts permission prompt.
The table covers the method as recorded in MDN browser-compat-data (api.Window.queryLocalFonts). The open Chromium bug for Android support is linked from the Android rows.
- Legend
- Yes
- Partial
- Flag
- No
- Unknown
| Browser / Platform | Support | Versions | Confidence | Source | Notes |
|---|---|---|---|---|---|
| Chrome (Desktop) | Yes | 103 | high | source | — |
| Chrome (Android) | No | — | high | source | 1 |
| Edge (Desktop) | Yes | 103 | high | source | 2 |
| Firefox (Desktop) | No | — | high | source | 3 |
| Firefox (Android) | No | — | high | source | 45 |
| Safari (macOS) | No | — | high | source | 6 |
| Safari (iOS) | No | — | high | source | 78 |
| Samsung Internet | No | — | high | source | 910 |
| WebView (Android) | No | — | high | source | 1112 |
- Implementation tracking: https://crbug.com/40840834.
- Derived by browser-compat-data mirroring from Chrome.
- No Firefox support is recorded in browser-compat-data.
- No Firefox for Android support is recorded in browser-compat-data.
- Derived by browser-compat-data mirroring from Firefox.
- No Safari support is recorded in browser-compat-data.
- No Safari on iOS support is recorded in browser-compat-data.
- Derived by browser-compat-data mirroring from Safari.
- Implementation tracking: https://crbug.com/40840834.
- Derived by browser-compat-data mirroring from Chrome Android.
- Implementation tracking: https://crbug.com/40840834.
- Derived by browser-compat-data mirroring from Chrome Android.
Call requirements
Section titled “Call requirements”The method is available only in secure contexts. It throws a SecurityError when called without prior user interaction or when a Permissions Policy blocks the feature, and a user-denied prompt rejects with NotAllowedError (MDN). The returned list is not guaranteed to be complete or to follow the filesystem order.
See also
Section titled “See also”- Local Font Access API: enumerating the fonts installed on a device
- Local Font Access API (wicg.github.io)
- Window: queryLocalFonts() method (developer.mozilla.org)