Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b00fc2e authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Fix broken build when DEBUG_GLYPHS is set"

parents 9ac704fe 6212a4f2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -966,13 +966,13 @@ SkTypeface* TextLayoutShaper::getCachedTypeface(SkTypeface** typeface, HB_Script
        // CreateFromFile(path) can return NULL if the path is non existing
        if (!*typeface) {
#if DEBUG_GLYPHS
        ALOGD("Font path '%s' is not valid, will use default font", path);
        ALOGD("No font for Harfbuzz script %d, will use default font", script);
#endif
            return mDefaultTypeface;
        }
        (*typeface)->ref();
#if DEBUG_GLYPHS
        ALOGD("Created SkTypeface from file '%s' with uniqueID = %d", path, (*typeface)->uniqueID());
        ALOGD("Created SkTypeface for Harfbuzz script %d with uniqueID = %d", script, (*typeface)->uniqueID());
#endif
    }
    return *typeface;