aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-08-15 19:02:46 +1000
committerNeil <nyamatongwe@gmail.com>2024-08-15 19:02:46 +1000
commitdcbc339899911e1a3a743de1c0c25d0c253dd39a (patch)
tree3d4fcd3405e7b4620476c36b0102031114bf65ad /gtk
parent6f51f5975920272f5f691d690107d15291a335f2 (diff)
downloadscintilla-mirror-dcbc339899911e1a3a743de1c0c25d0c253dd39a.tar.gz
Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.
Diffstat (limited to 'gtk')
-rwxr-xr-xgtk/PlatGTK.cxx2
1 files changed, 2 insertions, 0 deletions
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<PangoWeight>(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<PangoStretch>(static_cast<int>(fp.stretch)-1));
}
}
~FontHandle() override = default;