Page 1 of 1

Unity Font not found

Posted: 15 Apr 2020, 20:11
by askick
I get this when i try to use fonts
Image
Image
Image

Re: Unity Font not found

Posted: 16 Apr 2020, 09:59
by tkaczz
By default path searching is working in CURRENT directory. For example you have folder layout

-Assets
-- Fonts
-- Views

Then in in XAML placed in view folder you use Source="../Fonts/<path>". ../ is one-level up.

Re: Unity Font not found

Posted: 16 Apr 2020, 10:19
by sfernandez
FontFamily property uses family names, not font files. So the xaml should look like this:
<TextBlock FontFamily="Fonts/#Roboto" FontStretch="Condensed" Text="Hello World"/>
Noesis will take care of matching the family name plus the font properties (Weight, Stretch and Style) to the corresponding font file.
To make sure you use the correct family name you can inspect any Font asset and check the "Family" string that Noesis will match.