Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2851)

Unified Diff: content/renderer/renderer_font_platform_win.cc

Issue 636063007: Add Tahoma and other fonts to fallback font list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_font_platform_win.cc
diff --git a/content/renderer/renderer_font_platform_win.cc b/content/renderer/renderer_font_platform_win.cc
index a2d659bb423fb80c6cbe57879ea6d11a1e6e9bc1..fd862f0585b242e5dd20964381c7f92990f3a969 100644
--- a/content/renderer/renderer_font_platform_win.cc
+++ b/content/renderer/renderer_font_platform_win.cc
@@ -295,6 +295,7 @@ bool FontCollectionLoader::LoadFontListFromRegistry() {
// This list is mainly based on prefs/prefs_tab_helper.cc kFontDefaults.
const wchar_t* kRestrictedFontSet[] = {
+ // These are the "Web Safe" fonts.
L"times.ttf", // IDS_STANDARD_FONT_FAMILY
L"timesbd.ttf", // IDS_STANDARD_FONT_FAMILY
L"timesbi.ttf", // IDS_STANDARD_FONT_FAMILY
@@ -325,6 +326,31 @@ const wchar_t* kRestrictedFontSet[] = {
L"batang.ttc", // IDS_SERIF_FONT_FAMILY_KOREAN
L"simsun.ttc", // IDS_STANDARD_FONT_FAMILY_SIMPLIFIED_HAN
L"mingliu.ttc", // IDS_SERIF_FONT_FAMILY_TRADITIONAL_HAN
+
+ // These are from the Blink fallback list.
+ L"david.ttf", // USCRIPT_HEBREW
+ L"davidbd.ttf", // USCRIPT_HEBREW
+ L"euphemia.ttf", // USCRIPT_CANADIAN_ABORIGINAL
+ L"gautami.ttf", // USCRIPT_TELUGU
+ L"gautamib.ttf", // USCRIPT_TELUGU
+ L"latha.ttf", // USCRIPT_TAMIL
+ L"lathab.ttf", // USCRIPT_TAMIL
+ L"mangal.ttf", // USCRIPT_DEVANAGARI
+ L"mangalb.ttf", // USCRIPT_DEVANAGARI
+ L"monbaiti.ttf", // USCRIPT_MONGOLIAN
+ L"mvboli.ttf", // USCRIPT_THAANA
+ L"plantc.ttf", // USCRIPT_CHEROKEE
+ L"raavi.ttf", // USCRIPT_GURMUKHI
+ L"raavib.ttf", // USCRIPT_GURMUKHI
+ L"shruti.ttf", // USCRIPT_GUJARATI
+ L"shrutib.ttf", // USCRIPT_GUJARATI
+ L"sylfaen.ttf", // USCRIPT_GEORGIAN and USCRIPT_ARMENIAN
+ L"tahoma.ttf", // USCRIPT_ARABIC,
+ L"tahomabd.ttf", // USCRIPT_ARABIC,
+ L"tunga.ttf", // USCRIPT_KANNADA
+ L"tungab.ttf", // USCRIPT_KANNADA
+ L"vrinda.ttf", // USCRIPT_BENGALI
+ L"vrindab.ttf", // USCRIPT_BENGALI
};
bool FontCollectionLoader::LoadRestrictedFontList() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698