Home | History | Annotate | Download | only in sample
      1 namespace android {
      2 
      3 class MinikinFontSkia : public MinikinFont {
      4 public:
      5     explicit MinikinFontSkia(SkTypeface *typeface);
      6 
      7     ~MinikinFontSkia();
      8 
      9     bool GetGlyph(uint32_t codepoint, uint32_t *glyph) const;
     10 
     11     float GetHorizontalAdvance(uint32_t glyph_id,
     12         const MinikinPaint &paint) const;
     13 
     14     void GetBounds(MinikinRect* bounds, uint32_t glyph_id,
     15         const MinikinPaint& paint) const;
     16 
     17     // If buf is NULL, just update size
     18     bool GetTable(uint32_t tag, uint8_t *buf, size_t *size);
     19 
     20     int32_t GetUniqueId() const;
     21 
     22     SkTypeface *GetSkTypeface();
     23 
     24 private:
     25     SkTypeface *mTypeface;
     26 
     27 };
     28 
     29 }  // namespace android