aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-18 21:27:00 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-18 21:27:00 +0300
commit91fa1656600a52eddf650ea550e7cbd69d72903e (patch)
treea867ffff071c3bf7d183f827def2951cc02dcaa8 /win32
parent816d2a300b24ce65a908e251be13b3f1b93cfa81 (diff)
downloadsciteco-91fa1656600a52eddf650ea550e7cbd69d72903e.tar.gz
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.
Diffstat (limited to 'win32')
-rw-r--r--win32/.teco_css12
1 files changed, 12 insertions, 0 deletions
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;
+}