29 struct TypefaceImpl {
30 FontCollection *fFontCollection;
31
32
33 SkTypeface::Style fSkiaStyle;
34
35 int fBaseWeight;
36
37
38 FontStyle fStyle;
39 };
29 class FontCollection : public MinikinRefCounted {
51 private:
52 static const int kLogCharsPerPage = 8;
53 static const int kPageMask = (1 << kLogCharsPerPage) - 1;
64
67
68 static uint32_t sNextId;
69
70
71 uint32_t mId;
72
73
74 uint32_t mMaxChar;
75
76
77 std::vector<FontInstance> mInstances;
78
79
80 std::vector<const FontInstance*> mInstanceVec;
81
82
83 std::vector<Range> mRanges;
55 struct FontInstance {
56 SparseBitSet* mCoverage;
57 FontFamily* mFamily;
58 };
60 struct Range {
61 size_t start;
62 size_t end;
63 };