Arabic font fallback checker
Did the browser load your font, or draw the text in another one?
- Checks your page
- 3 browsers
- 1 rule
- Last updated
What we keep
The result appears here
Enter your page’s address and press “Check the page”. This is what the tool runs on it:
- Arabic web font that did not loadnot started
What it checks
- Arabic text whose first family in
font-familyis a web font, declared by an@font-facerule in the page's CSS or added by a script. - Whether the files of that font that cover Arabic letters ended in an error, with none of them loaded, such as an address that answers 404, or a font on another domain that does not allow yours.
- What is not counted: files whose
unicode-rangeleaves out the Arabic letters, and a file still loading when our wait ended, or never asked for.
Example
@font-face {
font-family: 'Brand Arabic';
src: url('/fonts/brand-arabic.woff2') format('woff2');
font-display: swap;
}@font-face {
font-family: 'Brand Arabic';
src: url('/_shared/fonts/arablyzer-test-arabic.ttf') format('truetype');
font-display: swap;
}How to fix
In the example, the font file was renamed on the server, so its address now answers 404. Find the font's address in the src of its @font-face rule, open it, and check that it answers with the font file (HTTP 200). The usual causes:
- The file was renamed or moved, or the path is wrong. A relative path in a CSS file is read from the CSS file's own folder, not from the page's.
- The font is on another domain without an
Access-Control-Allow-Originheader. Browsers load web fonts under the same cross-origin rules as scripts, so that domain must allow yours. - The format is one the browser cannot read. WOFF2 works in every current browser.
Then give the text a fallback you have checked with Arabic text, after the web font:
<style>
body {
font-family: 'Brand Arabic', system-ui, sans-serif;
}
</style>FAQ
No. font-display decides what shows while the font loads: with swap, the text shows in the fallback font, and the web font takes its place once loaded. When loading fails, the text stays in the fallback font, which is what this tool checks.
This tool checks a font that did not load at all, so the browser drew the whole text in another font. The Arabic font checker checks a font the browser loaded that lacks characters the text uses.
Because the failure may not be the site's: when Arablyzer's proxy refused a font request, for example for a blocked address, or the page reached Arablyzer's limit on requests or data, which cuts fonts that are still loading, we say nothing for that engine. Nor do we judge a file still loading when our wait ended.
What this tool runs
- Arabic web font that did not loadmoderate
ar-font-fallback
How we measure
We render the page in Chromium, Firefox and WebKit with Playwright, each behind Arablyzer's egress proxy, and wait a bounded time for web fonts and for the network to go quiet. In each engine we find the elements whose own text has Arabic letters, with the first family in their font-family. When that family is one of the page's web fonts, we read the state of its files from the browser's list of fonts (document.fonts), and the check fails when a file that covers Arabic letters ended in an error and none of them loaded. We report each font once, at the first element set in it, with the engines where it failed. The same page gives the same result on every check.