diff options
Diffstat (limited to 'include/minikin/FontFamily.h')
-rw-r--r-- | include/minikin/FontFamily.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/minikin/FontFamily.h b/include/minikin/FontFamily.h index 060d167..bcc2e3a 100644 --- a/include/minikin/FontFamily.h +++ b/include/minikin/FontFamily.h @@ -18,6 +18,7 @@ #define MINIKIN_FONT_FAMILY_H #include <vector> +#include <string> #include <utils/TypeHelpers.h> @@ -39,6 +40,9 @@ public: FontLanguage(const char* buf, size_t size); bool operator==(const FontLanguage other) const { return mBits == other.mBits; } + operator bool() const { return mBits != 0; } + + std::string getString() const; // 0 = no match, 1 = language matches, 2 = language and script match int match(const FontLanguage other) const; |