Embedded fonts not found in Noesis 3.2
Hey. I wanted to ask if we're supposed to change the way fonts are referenced in xaml with the changes in 3.2?
I reference fonts like this:
The fonts are embedded resources and we use Embedded font provider from Noesis.App. It was all working fine on 3.1.7, but broke on 3.2 and gives errors that the font is not found (for all the referenced fonts). Reverting to 3.1.7 fixed the issue. It seems that in 3.2 EmbeddedFontProvider.FamilyExists returns false for all of the fonts.
I reference fonts like this:
Code: Select all
<FontFamily x:Key="WorkSansFont">Work Sans, pack://application:,,,/Fonts/#Work Sans, pack://application:,,,/Fonts/#Noto Sans Arabic, pack://application:,,,/Fonts/#Noto Sans SC, pack://application:,,,/Fonts/#Noto Sans JP, pack://application:,,,/Fonts/#Noto Sans KR</FontFamily>
-
-
sfernandez
Site Admin
- Posts: 2794
- Joined:
Re: Embedded fonts not found in Noesis 3.2
Could you please report this in our bugtracker?
In the meantime you can change the font family definition to:
In the meantime you can change the font family definition to:
Code: Select all
<FontFamily x:Key="WorkSansFont">Work Sans, Fonts/#Work Sans, Fonts/#Noto Sans Arabic, Fonts/#Noto Sans SC, Fonts/#Noto Sans JP, Fonts/#Noto Sans KR</FontFamily>
Re: Embedded fonts not found in Noesis 3.2
They way you specified also doesn't work - it still doesn't find the font.
I also tried /Fonts/#Work Sans and it doesn't work either.
../Fonts/#Work Sans works (the folder structure is like Fonts/FontX.otf and Styles/BaseResourceDictionary.xaml, hence the .. to get correct relative path). There are no errors with the font not being found.
But it seems like one of our fonts is still not rendered - Roboto Condensed. I assume it might be a problem due to the font name containing the word "condensed" and maybe the praser thinks it should be font Roboto, with font stretch Condensed?
I've created two tickets - here's the one for the embedded fonts / global URIs problem (the original one) https://www.noesisengine.com/bugs/view.php?id=2545
Here's the second one for Roboto Condensed (I assume they are two separate issues, hence separate tickets): https://www.noesisengine.com/bugs/view.php?id=2546
I also tried /Fonts/#Work Sans and it doesn't work either.
../Fonts/#Work Sans works (the folder structure is like Fonts/FontX.otf and Styles/BaseResourceDictionary.xaml, hence the .. to get correct relative path). There are no errors with the font not being found.
But it seems like one of our fonts is still not rendered - Roboto Condensed. I assume it might be a problem due to the font name containing the word "condensed" and maybe the praser thinks it should be font Roboto, with font stretch Condensed?
I've created two tickets - here's the one for the embedded fonts / global URIs problem (the original one) https://www.noesisengine.com/bugs/view.php?id=2545
Here's the second one for Roboto Condensed (I assume they are two separate issues, hence separate tickets): https://www.noesisengine.com/bugs/view.php?id=2546
-
-
sfernandez
Site Admin
- Posts: 2794
- Joined:
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests