Map Calibri to Carlito
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 20 Sep 2013 17:41:52 +0000 (17:41 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 20 Sep 2013 17:41:52 +0000 (17:41 +0000)
Chrome OS will have Carlito as a metric-compatible replacement for Calibri.

This change has to be combined with a Chrome OS change to add
Calibri and configure fontconfig accordingly.

BUG=280557
TEST=With the CrOS change, a page using Calibri will use Carlito instead of the default fallback font (Arimo in case of English UI).
R=bungeman@google.com

Review URL: https://codereview.chromium.org/23618061

git-svn-id: http://skia.googlecode.com/svn/trunk@11418 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontConfigInterface_direct.cpp

index af704d0..2c1e418 100644 (file)
@@ -172,6 +172,7 @@ enum FontEquivClass
     PMINGLIUHK,
     MINGLIUHK,
     CAMBRIA,
+    CALIBRI,
 };
 
 // Match the font name against a whilelist of fonts, returning the equivalence
@@ -284,6 +285,10 @@ FontEquivClass GetFontEquivClass(const char* fontname)
         // Cambria
         { CAMBRIA, "Cambria" },
         { CAMBRIA, "Caladea" },
+
+        // Calibri
+        { CALIBRI, "Calibri" },
+        { CALIBRI, "Carlito" },
     };
 
     static const size_t kFontCount =