Bug 934261 - Use PostScript font name "LucidaGrande" for CoreText fallback. r=jdaggett a=bajaj
authorChris Peterson <cpeterson@mozilla.com>
Sat, 02 Nov 2013 12:51:48 -0700
changeset 166447 51f5ae29c5deafb652d8357ae79952cceaaac3e4
parent 166446 70556047758e15962e1d3d75144f120b20df9d46
child 166448 b4fa6222a6a7e2748632dbfad7b97511bb21929c
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett, bajaj
bugs934261
milestone27.0a2
Bug 934261 - Use PostScript font name "LucidaGrande" for CoreText fallback. r=jdaggett a=bajaj
gfx/thebes/gfxMacPlatformFontList.mm
--- a/gfx/thebes/gfxMacPlatformFontList.mm
+++ b/gfx/thebes/gfxMacPlatformFontList.mm
@@ -825,17 +825,17 @@ gfxMacPlatformFontList::GlobalFontFallba
 
     // use CoreText to find the fallback family
 
     gfxFontEntry *fontEntry = nullptr;
     CTFontRef fallback;
     bool cantUseFallbackFont = false;
 
     if (!mDefaultFont) {
-        mDefaultFont = ::CTFontCreateWithName(CFSTR("Lucida Grande"), 12.f,
+        mDefaultFont = ::CTFontCreateWithName(CFSTR("LucidaGrande"), 12.f,
                                               NULL);
     }
 
     fallback = ::CTFontCreateForString(mDefaultFont, str,
                                        ::CFRangeMake(0, len));
 
     if (fallback) {
         CFStringRef familyName = ::CTFontCopyFamilyName(fallback);