summaryrefslogtreecommitdiffstats
path: root/include/minikin/MinikinFont.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/minikin/MinikinFont.h')
-rw-r--r--include/minikin/MinikinFont.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/minikin/MinikinFont.h b/include/minikin/MinikinFont.h
index ee885f4..7f65cd7 100644
--- a/include/minikin/MinikinFont.h
+++ b/include/minikin/MinikinFont.h
@@ -35,6 +35,7 @@ public:
HyphenEdit() : hyphen(0) { }
HyphenEdit(uint32_t hyphenInt) : hyphen(hyphenInt) { }
bool hasHyphen() const { return hyphen != 0; }
+ bool operator==(const HyphenEdit &other) const { return hyphen == other.hyphen; }
private:
uint32_t hyphen;
};
@@ -48,8 +49,7 @@ struct MinikinPaint {
fakery(), fontFeatureSettings() { }
bool skipCache() const {
- // TODO: add hyphen to cache
- return !fontFeatureSettings.empty() || hyphenEdit.hasHyphen();
+ return !fontFeatureSettings.empty();
}
MinikinFont *font;