diff options
Diffstat (limited to 'include/minikin/FontCollection.h')
-rw-r--r-- | include/minikin/FontCollection.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/minikin/FontCollection.h b/include/minikin/FontCollection.h index dc48f8e..c6c2ed0 100644 --- a/include/minikin/FontCollection.h +++ b/include/minikin/FontCollection.h @@ -54,9 +54,12 @@ public: int start; int end; }; + void itemize(const uint16_t *string, size_t string_length, FontStyle style, std::vector<Run>* result) const; - private: + + uint32_t getId() const; +private: static const int kLogCharsPerPage = 8; static const int kPageMask = (1 << kLogCharsPerPage) - 1; @@ -70,6 +73,12 @@ public: size_t end; }; + // static for allocating unique id's + static uint32_t sNextId; + + // unique id for this font collection (suitable for cache key) + uint32_t mId; + // Highest UTF-32 code point that can be mapped uint32_t mMaxChar; |