#include "SkTypeface.h"
#include "platform/fonts/FontCache.h"
-namespace WebCore {
+namespace blink {
#if !OS(MACOSX)
unsigned FontPlatformData::hash() const
return h;
}
+bool FontPlatformData::fontContainsCharacter(UChar32 character)
+{
+ SkPaint paint;
+ setupPaint(&paint);
+ paint.setTextEncoding(SkPaint::kUTF32_TextEncoding);
+
+ uint16_t glyph;
+ paint.textToGlyphs(&character, sizeof(character), &glyph);
+ return glyph;
+}
+
#endif
#if ENABLE(OPENTYPE_VERTICAL)
}
#endif
-} // namespace WebCore
+} // namespace blink