Closed lilacpixel closed 4 months ago
Hey @lunalicca which font are you using ?
Can you copy you theme.scss
here and the output of fc-list | grep | ${your font}
?
So I can reproduce.
I tested both of the following themes from the repo's theme examples, with no changes other than trying multiple fonts:
https://github.com/oknozor/onagre/blob/main/docs/theme_examples/simmple.scss https://github.com/oknozor/onagre/blob/main/docs/theme_examples/not-adwaita.scss
All fonts exhibit the same behavior, including fallback families like sans-serif
. Here's the output for fc-list
for one of the fonts that I tested, Cabin:
/home/cari/.local/share/fonts/Cabin-Italic.otf: Cabin:style=Italic
/home/cari/.local/share/fonts/Cabin-SemiBoldItalic.otf: Cabin:style=SemiBold Italic
/home/cari/.local/share/fonts/Cabin-MediumItalic.otf: Cabin:style=Medium Italic
/home/cari/.local/share/fonts/Cabin-Bold.otf: Cabin:style=Bold
/home/cari/.local/share/fonts/Cabin-Regular.otf: Cabin:style=Regular
/home/cari/.local/share/fonts/Cabin-Medium.otf: Cabin:style=Medium
/home/cari/.local/share/fonts/Cabin-BoldItalic.otf: Cabin:style=Bold Italic
/home/cari/.local/share/fonts/Cabin-SemiBold.otf: Cabin:style=SemiBold
I entered the --font-family
declaration for this as --font-family: "Cabin";
.
Thanks for taking a look! :smile_cat:
Strange I am able to use "Cabin" or any other font without trouble. What version of fontconfig
are you using ?
How weird… is there anything else that might be worth checking? Here's my fontconfig
info:
> fc-list -V
fontconfig version 2.14.1
Honestly I don't know, maybe bumping the fontconfig crate would solve the issue
This is now fixed Onagre does not depend on fontconfig anymore since iced now provide an API to set application fonts. If the user defined font does not exist, it will just fallback to the default.
Describe the bug When attempting to trigger Onagre with any theme that contains a
--font-family
value, the Onagre window will fail to display. Runningonagre
in the terminal outputs a number of fontconfig warnings:Removing the line that contains
--font-family
fromtheme.scss
resolves the issue.To Reproduce
--font-family
value to the theme SCSS file.onagre
in the terminal.Expected behavior Onagre should display normally when a valid
--font-family
value is present.OS/WM: