mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 06:09:19 +00:00
Bug 1899702 - Create an initial list of default font prefs for iOS. r=jwatt
Created using https://developer.apple.com/fonts/system-fonts/ as a reference for what can be expected to be available. (Untested as yet, but can't really make things worse than just getting default fallbacks everywhere.) Differential Revision: https://phabricator.services.mozilla.com/D212096
This commit is contained in:
parent
9454b7367f
commit
bc525d7eb6
@ -2640,6 +2640,139 @@ pref("font.size.monospace.x-math", 13);
|
||||
|
||||
#endif // XP_MACOSX
|
||||
|
||||
#ifdef XP_IOS
|
||||
// For many scripts there is no standard "monospaced" font, so we just use
|
||||
// the same as serif/sans-serif, but we prefix the list with Menlo so that at
|
||||
// least any runs of Latin text found when that lang code is in effect will be
|
||||
// monospaced, even if the "native" script can't be.
|
||||
|
||||
// For non-Latin/Greek/Cyrillic scripts, there may not be any serif/sans-serif
|
||||
// distinction available, so both generics resolve to the same font.
|
||||
|
||||
pref("font.name-list.emoji", "Apple Color Emoji");
|
||||
|
||||
pref("font.name-list.serif.ar", "Al Nile");
|
||||
pref("font.name-list.sans-serif.ar", "Geeza Pro");
|
||||
pref("font.name-list.monospace.ar", "Menlo, Geeza Pro");
|
||||
|
||||
pref("font.name-list.serif.el", "Times New Roman");
|
||||
pref("font.name-list.sans-serif.el", "Arial");
|
||||
pref("font.name-list.monospace.el", "Menlo");
|
||||
|
||||
pref("font.name-list.serif.he", "Times New Roman");
|
||||
pref("font.name-list.sans-serif.he", "Arial");
|
||||
pref("font.name-list.monospace.he", "Menlo");
|
||||
|
||||
pref("font.name-list.serif.ja", "Hiragino Mincho ProN");
|
||||
pref("font.name-list.sans-serif.ja", "Hiragino Sans");
|
||||
pref("font.name-list.monospace.ja", "Menlo, Hiragino Sans");
|
||||
|
||||
pref("font.name-list.serif.ko", "Apple SD Gothic Neo");
|
||||
pref("font.name-list.sans-serif.ko", "Apple SD Gothic Neo");
|
||||
pref("font.name-list.monospace.ko", "Menlo, Apple SD Gothic Neo");
|
||||
|
||||
pref("font.name-list.serif.th", "Thonburi");
|
||||
pref("font.name-list.sans-serif.th", "Thonburi");
|
||||
pref("font.name-list.monospace.th", "Menlo, Thonburi");
|
||||
|
||||
// XXX Unsure if the "SF Armenian" font is present/visible as standard?
|
||||
pref("font.name-list.serif.x-armn", "SF Armenian");
|
||||
pref("font.name-list.sans-serif.x-armn", "SF Armenian");
|
||||
pref("font.name-list.monospace.x-armn", "Menlo, SF Armenian");
|
||||
|
||||
pref("font.name-list.serif.x-beng", "Kohinoor Bangla");
|
||||
pref("font.name-list.sans-serif.x-beng", "Kohinoor Bangla");
|
||||
pref("font.name-list.monospace.x-beng", "Menlo, Kohinoor Bangla");
|
||||
|
||||
pref("font.name-list.serif.x-cans", "Euphemia UCAS");
|
||||
pref("font.name-list.sans-serif.x-cans", "Euphemia UCAS");
|
||||
pref("font.name-list.monospace.x-cans", "Menlo, Euphemia UCAS");
|
||||
|
||||
pref("font.name-list.serif.x-cyrillic", "Times New Roman");
|
||||
pref("font.name-list.sans-serif.x-cyrillic", "Arial");
|
||||
pref("font.name-list.monospace.x-cyrillic", "Menlo");
|
||||
|
||||
pref("font.name-list.serif.x-devanagari", "Devanagari Sangam MN");
|
||||
pref("font.name-list.sans-serif.x-devanagari", "Devanagari Sangam MN");
|
||||
pref("font.name-list.monospace.x-devanagari", "Menlo, Devanagari Sangam MN");
|
||||
|
||||
pref("font.name-list.serif.x-ethi", "Kefa");
|
||||
pref("font.name-list.sans-serif.x-ethi", "Kefa");
|
||||
pref("font.name-list.monospace.x-ethi", "Menlo, Kefa");
|
||||
|
||||
// XXX Is "SF Georgian" present/visible as standard?
|
||||
pref("font.name-list.serif.x-geor", "SF Georgian");
|
||||
pref("font.name-list.sans-serif.x-geor", "SF Georgian");
|
||||
pref("font.name-list.monospace.x-geor", "Menlo, SF Georgian");
|
||||
|
||||
pref("font.name-list.serif.x-gujr", "Kohinoor Gujarati");
|
||||
pref("font.name-list.sans-serif.x-gujr", "Kohinoor Gujarati");
|
||||
pref("font.name-list.monospace.x-gujr", "Menlo, Kohinoor Gujarati");
|
||||
|
||||
// XXX Check spelling: "Mukta Mahee" or "MuktaMahee"?
|
||||
pref("font.name-list.serif.x-guru", "Mukta Mahee");
|
||||
pref("font.name-list.sans-serif.x-guru", "Mukta Mahee");
|
||||
pref("font.name-list.monospace.x-guru", "Menlo, Mukta Mahee");
|
||||
|
||||
pref("font.name-list.serif.x-khmr", "Khmer Sangam MN");
|
||||
pref("font.name-list.sans-serif.x-khmr", "Khmer Sangam MN");
|
||||
pref("font.name-list.monospace.x-khmr", "Menlo, Khmer Sangam MN");
|
||||
|
||||
pref("font.name-list.serif.x-mlym", "Malayalam Sangam MN");
|
||||
pref("font.name-list.sans-serif.x-mlym", "Malayalam Sangam MN");
|
||||
pref("font.name-list.monospace.x-mlym", "Menlo, Malayalam Sangam MN");
|
||||
|
||||
pref("font.name-list.serif.x-orya", "Noto Sans Oriya");
|
||||
pref("font.name-list.sans-serif.x-orya", "Noto Sans Oriya");
|
||||
pref("font.name-list.monospace.x-orya", "Menlo, Noto Sans Oriya");
|
||||
|
||||
pref("font.name-list.serif.x-telu", "Kohinoor Telugu");
|
||||
pref("font.name-list.sans-serif.x-telu", "Kohinoor Telugu");
|
||||
pref("font.name-list.monospace.x-telu", "Menlo, Kohinoor Telugu");
|
||||
|
||||
pref("font.name-list.serif.x-knda", "Noto Sans Kannada");
|
||||
pref("font.name-list.sans-serif.x-knda", "Noto Sans Kannada");
|
||||
pref("font.name-list.monospace.x-knda", "Menlo, Noto Sans Kannada");
|
||||
|
||||
pref("font.name-list.serif.x-sinh", "Sinhala Sangam MN");
|
||||
pref("font.name-list.sans-serif.x-sinh", "Sinhala Sangam MN");
|
||||
pref("font.name-list.monospace.x-sinh", "Menlo, Sinhala Sangam MN");
|
||||
|
||||
pref("font.name-list.serif.x-tamil", "Tamil Sangam MN");
|
||||
pref("font.name-list.sans-serif.x-tamil", "Tamil Sangam MN");
|
||||
pref("font.name-list.monospace.x-tamil", "Menlo, Tamil Sangam MN");
|
||||
|
||||
pref("font.name-list.serif.x-tibt", "Kailasa");
|
||||
pref("font.name-list.sans-serif.x-tibt", "Kailasa");
|
||||
pref("font.name-list.monospace.x-tibt", "Menlo, Kailasa");
|
||||
|
||||
pref("font.name-list.serif.x-unicode", "Times New Roman");
|
||||
pref("font.name-list.sans-serif.x-unicode", "Arial");
|
||||
pref("font.name-list.monospace.x-unicode", "Menlo");
|
||||
|
||||
pref("font.name-list.serif.x-western", "Times New Roman");
|
||||
pref("font.name-list.sans-serif.x-western", "Arial");
|
||||
pref("font.name-list.monospace.x-western", "Menlo");
|
||||
|
||||
// XXX Is there an alternative that would be better for 'serif'?
|
||||
pref("font.name-list.serif.zh-CN", "Times New Roman, PingFang SC");
|
||||
pref("font.name-list.sans-serif.zh-CN", "Arial, PingFang SC");
|
||||
pref("font.name-list.monospace.zh-CN", "Menlo, PingFang SC");
|
||||
|
||||
pref("font.name-list.serif.zh-TW", "Times New Roman, PingFang TC");
|
||||
pref("font.name-list.sans-serif.zh-TW", "Arial, PingFang TC");
|
||||
pref("font.name-list.monospace.zh-TW", "Menlo, PingFang TC");
|
||||
|
||||
pref("font.name-list.serif.zh-HK", "Times New Roman, PingFang HK");
|
||||
pref("font.name-list.sans-serif.zh-HK", "Arial, PingFang HK");
|
||||
pref("font.name-list.monospace.zh-HK", "Menlo, PingFang HK");
|
||||
|
||||
pref("font.name-list.serif.x-math", "STIX Two Math, Symbol, Apple Symbols");
|
||||
pref("font.name-list.sans-serif.x-math", "Arial");
|
||||
pref("font.name-list.monospace.x-math", "Menlo");
|
||||
|
||||
#endif // XP_IOS
|
||||
|
||||
#ifdef ANDROID
|
||||
// Handled differently under Mac/Windows
|
||||
pref("network.protocol-handler.warn-external.file", false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user