mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 17:55:26 -04:00
Keep compact font family names together (#1263)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
from routes.font_routes import _derive_family
|
||||
|
||||
|
||||
def test_derive_family_keeps_jetbrains_together():
|
||||
assert _derive_family("JetBrainsMono-Regular.woff2") == "JetBrains Mono"
|
||||
|
||||
|
||||
def test_derive_family_splits_common_family_suffixes():
|
||||
assert _derive_family("FiraCode-SemiBold.ttf") == "Fira Code"
|
||||
assert _derive_family("NotoSans-Bold.otf") == "Noto Sans"
|
||||
assert _derive_family("RobotoSlab-Bold.woff2") == "Roboto Slab"
|
||||
Reference in New Issue
Block a user