From dcbc339899911e1a3a743de1c0c25d0c253dd39a Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 Aug 2024 19:02:46 +1000 Subject: Add SCI_STYLESETSTRETCH to support condensed and expanded text styles. --- src/Style.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Style.cxx') diff --git a/src/Style.cxx b/src/Style.cxx index fcde6398e..228b3db74 100644 --- a/src/Style.cxx +++ b/src/Style.cxx @@ -27,6 +27,7 @@ bool FontSpecification::operator==(const FontSpecification &other) const noexcep weight == other.weight && italic == other.italic && size == other.size && + stretch == other.stretch && characterSet == other.characterSet && extraFontFlag == other.extraFontFlag && checkMonospaced == other.checkMonospaced; @@ -41,6 +42,8 @@ bool FontSpecification::operator<(const FontSpecification &other) const noexcept return !italic; if (size != other.size) return size < other.size; + if (stretch != other.stretch) + return stretch < other.stretch; if (characterSet != other.characterSet) return characterSet < other.characterSet; if (extraFontFlag != other.extraFontFlag) -- cgit v1.2.3