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

Unified Diff: skia/ext/SkFontHost_fontconfig_direct.h

Issue 668127: linux: handle basic metric-compatibile font fallback (Closed)
Patch Set: wrap Created 10 years, 9 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 | skia/ext/SkFontHost_fontconfig_direct.cpp » ('j') | skia/ext/SkFontHost_fontconfig_direct.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/SkFontHost_fontconfig_direct.h
diff --git a/skia/ext/SkFontHost_fontconfig_direct.h b/skia/ext/SkFontHost_fontconfig_direct.h
index 56bea34873f260cdae8beb7800134effa322dc1d..3f9475d05bb01c2cf25d58aef5e400237b189be6 100644
--- a/skia/ext/SkFontHost_fontconfig_direct.h
+++ b/skia/ext/SkFontHost_fontconfig_direct.h
@@ -35,6 +35,10 @@ 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_;
« no previous file with comments | « no previous file | skia/ext/SkFontHost_fontconfig_direct.cpp » ('j') | skia/ext/SkFontHost_fontconfig_direct.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698