Re: Unity Font not found
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.
-Assets
-- Fonts
-- Views
Then in in XAML placed in view folder you use Source="../Fonts/<path>". ../ is one-level up.
-
sfernandez
Site Admin
- Posts: 3183
- Joined:
Re: Unity Font not found
FontFamily property uses family names, not font files. So the xaml should look like this:
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.
Code: Select all
<TextBlock FontFamily="Fonts/#Roboto" FontStretch="Condensed" Text="Hello World"/>
To make sure you use the correct family name you can inspect any Font asset and check the "Family" string that Noesis will match.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests