From 6f5e264ba2a0a8c16213b1c2ace5fc26bd0b0849 Mon Sep 17 00:00:00 2001 From: "alqahira%ardisson.org" Date: Wed, 9 Apr 2008 00:22:52 +0000 Subject: [PATCH] Bug 423582 - Switch Mac (CJK) font prefs to the canonical font names. r=jdaggett, sr=roc, a1.9=beltzner --- modules/libpref/src/init/all.js | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/modules/libpref/src/init/all.js b/modules/libpref/src/init/all.js index e2cd682cd08..1664b28ab37 100644 --- a/modules/libpref/src/init/all.js +++ b/modules/libpref/src/init/all.js @@ -1515,7 +1515,10 @@ pref("browser.drag_out_of_frame_style", 1); pref("ui.key.saveLink.shift", false); // true = shift, false = meta pref("ui.click_hold_context_menus", false); -// default font name (in UTF8) +// default fonts (in UTF8 and using canonical names) +// to determine canonical font names, use a debug build and +// enable NSPR logging for module fontInfoLog:5 +// canonical names immediately follow '(fontinit) family:' in the log pref("font.name.serif.ar", "Al Bayan"); pref("font.name.sans-serif.ar", "Geeza Pro"); @@ -1550,12 +1553,12 @@ pref("font.name-list.monospace.he", "Arial Hebrew"); pref("font.name-list.cursive.he", "Corsiva Hebrew"); pref("font.name-list.fantasy.he", "Corsiva Hebrew"); -pref("font.name.serif.ja", "ヒラギノ明朝 Pro"); -pref("font.name.sans-serif.ja", "ヒラギノ角ゴ Pro"); -pref("font.name.monospace.ja", "Osaka−等幅"); -pref("font.name-list.serif.ja", "ヒラギノ明朝 Pro"); -pref("font.name-list.sans-serif.ja", "ヒラギノ角ゴ Pro"); -pref("font.name-list.monospace.ja", "Osaka−等幅"); +pref("font.name.serif.ja", "Hiragino Mincho Pro"); +pref("font.name.sans-serif.ja", "Hiragino Kaku Gothic Pro"); +pref("font.name.monospace.ja", "Osaka-Mono"); +pref("font.name-list.serif.ja", "Hiragino Mincho Pro"); +pref("font.name-list.sans-serif.ja", "Hiragino Kaku Gothic Pro"); +pref("font.name-list.monospace.ja", "Osaka-Mono"); pref("font.name.serif.ko", "AppleMyungjo"); pref("font.name.sans-serif.ko", "AppleGothic"); @@ -1728,10 +1731,10 @@ pref("font.name-list.monospace.x-western", "Courier"); pref("font.name-list.cursive.x-western", "Apple Chancery"); pref("font.name-list.fantasy.x-western", "Papyrus"); -pref("font.name.serif.zh-CN", "华文宋体"); +pref("font.name.serif.zh-CN", "STSong"); pref("font.name.sans-serif.zh-CN", "STHeiti"); pref("font.name.monospace.zh-CN", "STHeiti"); -pref("font.name-list.serif.zh-CN", "华文宋体"); +pref("font.name-list.serif.zh-CN", "STSong"); pref("font.name-list.sans-serif.zh-CN", "STHeiti"); pref("font.name-list.monospace.zh-CN", "STHeiti"); @@ -1742,12 +1745,12 @@ pref("font.name-list.serif.zh-TW", "Apple LiSung"); pref("font.name-list.sans-serif.zh-TW", "Apple LiGothic"); pref("font.name-list.monospace.zh-TW", "Apple LiGothic"); -pref("font.name.serif.zh-HK", "儷宋 Pro"); -pref("font.name.sans-serif.zh-HK", "儷黑 Pro"); -pref("font.name.monospace.zh-HK", "儷黑 Pro"); -pref("font.name-list.serif.zh-HK", "儷宋 Pro"); -pref("font.name-list.sans-serif.zh-HK", "儷黑 Pro"); -pref("font.name-list.monospace.zh-HK", "儷黑 Pro"); +pref("font.name.serif.zh-HK", "LiSong Pro"); +pref("font.name.sans-serif.zh-HK", "LiHei Pro"); +pref("font.name.monospace.zh-HK", "LiHei Pro"); +pref("font.name-list.serif.zh-HK", "LiSong Pro"); +pref("font.name-list.sans-serif.zh-HK", "LiHei Pro"); +pref("font.name-list.monospace.zh-HK", "LiHei Pro"); pref("font.default.ar", "sans-serif"); pref("font.size.variable.ar", 16);