

In general, WinForms applications should not hardcode a particular font. If it can't find that specified font, the operating system automatically selects a fallback, based on various heuristics (this article is very old, so some of these details have changed, but many of them are the same). Only one font's face name can be specified for the FontFamily constructor. The WinForms FontFamily class constructor doesn't support explicit fallback fonts. Thanks.You are using WinForms, but looking at the WPF documentation. I'm really puzzled with that and wonder if anycodings_windows there's a way to customize the fallback anycodings_windows rules of Chromium or the rules of Windows in anycodings_windows a way Chromium respects. It works anycodings_windows for Firefox, because when the CSS goes like anycodings_windows "Hiragino Sans GB, Microsoft YaHei", Firefox anycodings_windows uses "XHei WP" (follows the substitution anycodings_windows rules in registry), but Chrome uses anycodings_windows "Microsoft YaHei" (ignores the substitution anycodings_windows rules).Īnother difference that's related to this anycodings_windows question is that, Firefox sees the fonts in anycodings_windows the options as the last resort while Chrome, anycodings_windows if any font is specified in "font-family", anycodings_windows fallbacks to the system font. Interestingly, I found Firefox and Chrome anycodings_windows treats font-family in a very different way.įor example, I substituted "Hiragino Sans anycodings_windows GB" (which I don't have) with "XHei WP" anycodings_windows (which I have installed) in the registry anycodings_windows (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows anycodings_windows NT\CurrentVersion\FontSubstitutes).

(More specifically, on my anycodings_windows Simplified Chinese system, it always falls anycodings_windows back to SimSun.)


On Windows it anycodings_windows always falls back to a system font which I anycodings_windows cannot control. I know that on Linux, the browser respects anycodings_windows the rules in "nf" to determine what anycodings_windows font to use when Arial is not available or anycodings_windows there are codepoints which Arial doesn't anycodings_windows support, but I have no idea how I can anycodings_windows customize it on Windows. I see some pages specify the font family anycodings_windows like font-family: Arial, sans-serif
