Some fonts are not detected by its name
fontconfig
[piroro@pc ~]$ fc-list :mono
/usr/share/fonts/TTF/JetBrainsMono-ExtraBold.ttf: JetBrains Mono,JetBrains Mono ExtraBold:style=ExtraBold,Regular
...
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL
...
cosmic-term
[piroro@pc ~]$ RUST_LOG=cosmic_text=debug,cosmic_term=debug cosmic-term
[2024-01-12T13:45:47Z DEBUG cosmic_text::font::system] Locale: ja-JP
[2024-01-12T13:45:47Z DEBUG cosmic_text::font::system] Parsed 753 font faces in 4ms.
[2024-01-12T13:45:47Z ERROR cosmic_term] 'Cascadia Mono PL' is not in the font list
[2024-01-12T13:45:47Z ERROR cosmic_term] setting font name to 'JetBrains Mono'
...
Fonts that don't have regular and bold weights with default stretch get filtered out.
On Arch, I tried the package ttf-cascadia-code, and it only gives face info with regular (400) weight for 'Cascadia Mono PL'. However, the package otf-cascadia-code works perfectly.
[piroro@pc Video]$ fc-list :mono | grep "CascadiaMonoPL.ttf"
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=ExtraLight
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=SemiLight
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=Light
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=Bold
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=SemiBold
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL:style=Regular
/usr/share/fonts/TTF/CascadiaMonoPL.ttf: Cascadia Mono PL
It looks like ttf-cascadia-code is variable font and contains regular and bold weights. Isn't this sufficient? (Sorry if this is noob question)
Is this bug fixed?
@WatchMkr There is no variable font support in cosmic-text yet. When I did early explorations about this, I quickly hit a bug/limitation in rustybuzz (RazrFalcon/rustybuzz#91). So improved support in rustybuzz is required before this can be revisited.