Bug 472621 - "Thunderbird fails to use some fonts for the default font of HTML messages, if the font has non-ASCII name." [r+sr=bienvenu]
authorSHIMODA Hiroshi <piro@p.club.ne.jp>
Thu, 15 Jan 2009 10:15:29 +0000
changeset 1641 c9502995cd11
parent 1640 c263cff9191d
child 1642 3e31d68c0edb
push id1315
push userbugzilla@standard8.plus.com
push dateThu, 15 Jan 2009 10:17:40 +0000
treeherdercomm-central@3e31d68c0edb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs472621
Bug 472621 - "Thunderbird fails to use some fonts for the default font of HTML messages, if the font has non-ASCII name." [r+sr=bienvenu]
mail/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -3435,47 +3435,46 @@ function toggleAddressPicker()
 // public method called by the address picker sidebar
 function AddRecipient(recipientType, address)
 {
   awAddRecipient(recipientType, address);
 }
 
 function loadHTMLMsgPrefs()
 {
-  var pref = GetPrefs();
   var fontFace;
   var fontSize;
   var textColor;
   var bgColor;
   
   try { 
-    fontFace = pref.getCharPref("msgcompose.font_face");
+    fontFace = getPref("msgcompose.font_face", true);
     doStatefulCommand('cmd_fontFace', fontFace);
   } catch (e) {}
 
   try { 
-    fontSize = pref.getCharPref("msgcompose.font_size");
+    fontSize = getPref("msgcompose.font_size");
     EditorSetFontSize(fontSize);
   } catch (e) {}
 
   var bodyElement = GetBodyElement();
 
   try { 
-    textColor = pref.getCharPref("msgcompose.text_color");
+    textColor = getPref("msgcompose.text_color");
     if (!bodyElement.getAttribute("text"))
     {
     bodyElement.setAttribute("text", textColor);
     gDefaultTextColor = textColor;
     document.getElementById("cmd_fontColor").setAttribute("state", textColor);    
     onFontColorChange();
     }
   } catch (e) {}
 
   try { 
-    bgColor = pref.getCharPref("msgcompose.background_color");
+    bgColor = getPref("msgcompose.background_color");
     if (!bodyElement.getAttribute("bgcolor"))
     {
     bodyElement.setAttribute("bgcolor", bgColor);
     gDefaultBackgroundColor = bgColor;
     document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor);
     onBackgroundColorChange();
     }
   } catch (e) {}