aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 253541bded..8bf44784c2 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -907,7 +907,7 @@ SkScalerContext* SkFontHost::CreateScalerContext(const SkDescriptor* desc) {
*/
SkTypeface::Style find_name_and_style(SkStream* stream, SkString* name) {
FT_Library library;
- if (!InitFreetype()) {
+ if (FT_Init_FreeType(&library)) {
name->set(NULL);
return SkTypeface::kNormal;
}