Open 13xforever opened 1 year ago
@Gillibald
You are trying tonuse different fonts so everything works as expected. Regular and solid are different families.
On Windows both fonts are parsed with different family names (Font Awesome 6 Free
and Font Awesome 6 Free Solid
).
On Linux both fonts are parsed with the same name (Font Awesome 6 Free
), so you can't use both.
Describe the bug If I want to use multiple versions of Font Awesome, I need to differentiate between the styles/font files. On Windows
FontFamily.Name
includes the font file style, so there's no issue specifying what font file to use for an element. However, on Linux font style is not part of theFontFamily.Name
, so all styles of the same font are merged into one embedded FontFamily.To Reproduce Steps to reproduce the behavior:
Expected behavior FontFamily grouping and naming is consistent between different platforms
Screenshots![image](https://github.com/AvaloniaUI/Avalonia/assets/36445/8333ffd5-bcd3-4205-baae-281c23267f7b)
Desktop (please complete the following information):
Additional context The issue was raised in #10855, but was closed as you can kinda workaround the issue if you only need one font file. However I couldn't figure out how to make it work with multiple font files.