From 91fa1656600a52eddf650ea550e7cbd69d72903e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 18 Apr 2025 21:27:00 +0300 Subject: Gtk/win32: fixed fonts and therefore pango warnings on startup (closes #7) * The default womanpage font is the abstract "Serif" now, so that should be more portable. "Times" wasn't found on Windows. * Win32 distributions include a custom .teco_css now, which removes the small-caps font attribute from the type label. The default Gtk theme on Windows references the "Segoe UI" font and it doesn't have a small-caps variant. In fact no default Windows font appears to have one. * We could add a custom .teco_ini to win32 distributions as well, but there is currently no need for it. * Do not distribute the /win32 files. They are used only for building Win32/64 packages. There is no point in distributing them in the tarball if the /debian and /freebsd directories aren't distributed as well. --- win32/.teco_css | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 win32/.teco_css (limited to 'win32') diff --git a/win32/.teco_css b/win32/.teco_css new file mode 100644 index 0000000..9a02919 --- /dev/null +++ b/win32/.teco_css @@ -0,0 +1,12 @@ +@import "fallback.css"; + +/* + * Windows distributions use the default Gtk theme which + * references the Segoe UI font. + * It doesn't have a small-caps variant and there are apparently no native + * small-caps fonts preinstalled on Windows. + * This avoids warnings on startup. + */ +.type-label { + font-variant: normal; +} -- cgit v1.2.3