1 namespace android { 2 3 class MinikinFontSkia : public MinikinFont { 4 public: 5 explicit MinikinFontSkia(SkTypeface *typeface); 6 7 ~MinikinFontSkia(); 8 9 float GetHorizontalAdvance(uint32_t glyph_id, 10 const MinikinPaint &paint) const; 11 12 void GetBounds(MinikinRect* bounds, uint32_t glyph_id, 13 const MinikinPaint& paint) const; 14 15 const void* GetTable(uint32_t tag, size_t* size, MinikinDestroyFunc* destroy); 16 17 SkTypeface *GetSkTypeface(); 18 19 private: 20 SkTypeface *mTypeface; 21 22 }; 23 24 } // namespace android 25