MinikinSkia.h revision d133eab2a1a59ce4a5b1b3db04ec00dc0dbdf349
1namespace android {
2
3class MinikinFontSkia : public MinikinFont {
4public:
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
24private:
25    SkTypeface *mTypeface;
26
27};
28
29}  // namespace android