summaryrefslogtreecommitdiffstats
path: root/skia/ext/SkFontHost_fontconfig_direct.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 23:27:50 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 23:27:50 +0000
commite35c67993153e338121eedd6413e40d39b7cb8f9 (patch)
treee9988121491c354e26677ff9963cb94038975f23 /skia/ext/SkFontHost_fontconfig_direct.h
parent15f49af69e1349dd4cc0ed57d422ef2398d5828e (diff)
downloadchromium_src-e35c67993153e338121eedd6413e40d39b7cb8f9.zip
chromium_src-e35c67993153e338121eedd6413e40d39b7cb8f9.tar.gz
chromium_src-e35c67993153e338121eedd6413e40d39b7cb8f9.tar.bz2
linux: be more conservative in Liberation font fallback
Rather than encoding all of the supposedly metric-compatible fonts from fontconfig, let's only whitelist fonts we know really improve the web for users. The Helvetica and Courier New substitutes don't look too great. BUB=39099 Review URL: http://codereview.chromium.org/1235001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/SkFontHost_fontconfig_direct.h')
-rw-r--r--skia/ext/SkFontHost_fontconfig_direct.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/skia/ext/SkFontHost_fontconfig_direct.h b/skia/ext/SkFontHost_fontconfig_direct.h
index 3f9475d..56bea34 100644
--- a/skia/ext/SkFontHost_fontconfig_direct.h
+++ b/skia/ext/SkFontHost_fontconfig_direct.h
@@ -35,10 +35,6 @@ class FontConfigDirect : public FontConfigInterface {
virtual int Open(unsigned fileid);
private:
- // Return true if font_a and font_b are completely interchangeable;
- // e.g., there exist free clones of certain well-known fonts.
- bool IsMetricCompatibleReplacement(const char* font_a, const char* font_b);
-
SkMutex mutex_;
std::map<unsigned, std::string> fileid_to_filename_;
std::map<std::string, unsigned> filename_to_fileid_;