This document records my conclusions of experimenting Firefox 68 and Chromium 74 font fallback mechanism on Windows, as dated of the writing time.
Both Firefox and Chromium allow users to configure the desired fonts used for displaying HTML in various languages. The HTML language is specified in the <html lang={lang}>
tag. For instance, a Chinese webpage could be written as <html lang="zh">
or more specifically <html lang="zh-CN">
. English webpage is <html lang="en">
or simplify lefting out the lang
tag (although strongly discouraged by the W3C standard). The per-script font setting in Chromium is unlocked with the Advanced Font Settings extension.
When the webpage specify the font list to be used for certain element in CSS, the browsers will first search its font cache for