The default theme declares Noto Serif as a font family
CI / build + test (push) Canceled after 0s
CI / cargo audit (push) Canceled after 0s

`theme.json` gains a `noto-serif` family with its Light 300, Regular 400, Medium 500 and Bold 700 weights, read from the `fonts-noto-core` files that `ltk-theme-default` already depends on, and falling back to Sora. Only the families declared in the theme resolve through `Text::font`, so a widget that wants a serif face, such as the crustace clock with its bold time over a regular date, needs the family to be listed here.
This commit is contained in:
2026-10-11 16:26:01 +02:00
parent 0d492f7c1d
commit 6e4bf83c91
+10
View File
@@ -14,6 +14,16 @@
{ "weight": 600, "path": "/usr/share/fonts/opentype/sora/Sora-SemiBold.otf" },
{ "weight": 700, "path": "/usr/share/fonts/opentype/sora/Sora-Bold.otf" }
]
},
"noto-serif": {
"name": "Noto Serif",
"fallbacks": ["sora"],
"sources": [
{ "weight": 300, "path": "/usr/share/fonts/truetype/noto/NotoSerif-Light.ttf" },
{ "weight": 400, "path": "/usr/share/fonts/truetype/noto/NotoSerif-Regular.ttf" },
{ "weight": 500, "path": "/usr/share/fonts/truetype/noto/NotoSerif-Medium.ttf" },
{ "weight": 700, "path": "/usr/share/fonts/truetype/noto/NotoSerif-Bold.ttf" }
]
}
},