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

Unified Diff: src/ports/SkFontConfigInterface_direct.cpp

Issue 23684041: improve bitmap font support (FreeType only) (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontConfigInterface_direct.cpp
===================================================================
--- src/ports/SkFontConfigInterface_direct.cpp (revision 12480)
+++ src/ports/SkFontConfigInterface_direct.cpp (working copy)
@@ -330,11 +330,11 @@
}
static bool valid_pattern(FcPattern* pattern) {
- FcBool is_scalable;
- if (FcPatternGetBool(pattern, FC_SCALABLE, 0, &is_scalable) != FcResultMatch
- || !is_scalable) {
- return false;
- }
+// FcBool is_scalable;
reed1 2013/12/09 16:58:42 Why is this section commented out? Can we delete i
bungeman-skia 2013/12/09 19:42:44 This change is required so that bitmap fonts are n
+// if (FcPatternGetBool(pattern, FC_SCALABLE, 0, &is_scalable) != FcResultMatch
+// || !is_scalable) {
+// return false;
+// }
// fontconfig can also return fonts which are unreadable
const char* c_filename = get_name(pattern, FC_FILE);
« no previous file with comments | « no previous file | src/ports/SkFontHost_FreeType.cpp » ('j') | src/ports/SkFontHost_FreeType.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698