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. --- gtk/PlatGTK.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 563fa9c81..8419521c9 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -100,6 +100,8 @@ public: pango_font_description_set_size(fd.get(), pango_units_from_double(fp.size)); pango_font_description_set_weight(fd.get(), static_cast(fp.weight)); pango_font_description_set_style(fd.get(), fp.italic ? PANGO_STYLE_ITALIC : PANGO_STYLE_NORMAL); + pango_font_description_set_stretch(fd.get(), + static_cast(static_cast(fp.stretch)-1)); } } ~FontHandle() override = default; -- cgit v1.2.3