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