diff options
Diffstat (limited to 'include/minikin')
-rw-r--r-- | include/minikin/FontCollection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/minikin/FontCollection.h b/include/minikin/FontCollection.h index 78ab2aa..508a129 100644 --- a/include/minikin/FontCollection.h +++ b/include/minikin/FontCollection.h @@ -57,6 +57,9 @@ public: void itemize(const uint16_t *string, size_t string_length, FontStyle style, std::vector<Run>* result) const; + // Get the base font for the given style, useful for font-wide metrics. + MinikinFont* baseFont(FontStyle style); + uint32_t getId() const; private: static const int kLogCharsPerPage = 8; |