commit c5d68d0c09afe3d3e2ecc1e4f94f822285456253
parent 25990b06d886078b7ad2350ff8098316bf49c222
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 22 Oct 2026 08:51:00 +0000
fix(styles): use Open Sans instead of Apple Braille for DOI marker (thanks Jakob Lanstorp)
Diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/tem_loader/styles/doi.qml b/tem_loader/styles/doi.qml
@@ -178,7 +178,7 @@
<Option name="angle" type="QString" value="0"/>
<Option name="chr" type="QString" value="-------"/>
<Option name="color" type="QString" value="128,128,128,255,hsv:0,0,0.50000762939453125,1"/>
- <Option name="font" type="QString" value="Apple Braille"/>
+ <Option name="font" type="QString" value="Open Sans"/>
<Option name="font_style" type="QString" value=""/>
<Option name="horizontal_anchor_point" type="QString" value="1"/>
<Option name="joinstyle" type="QString" value="bevel"/>
diff --git a/test/test_core.py b/test/test_core.py
@@ -514,6 +514,14 @@ class ProcessXYZTests(unittest.TestCase):
self.assertIsNotNone(method)
self.assertEqual(method.attrib["id"], "EqualInterval")
+ def test_styles_use_open_fonts(self):
+ for path in STYLES_DIR.glob("*.qml"):
+ root = ET.parse(path).getroot()
+ fonts = [e.attrib["value"] for e in root.iter("Option") if e.get("name") == "font"]
+ fonts += [e.attrib["fontFamily"] for e in root.iter("text-style")]
+ for font in fonts:
+ self.assertEqual(font, "Open Sans", path.name)
+
class PluginTests(unittest.TestCase):
def _import_plugin_module(self, qt6_enums=False):