Topic Author
Posts: 1
Joined: 28 Dec 2019, 20:36

Unity Font not found

15 Apr 2020, 20:11

I get this when i try to use fonts
User avatar
Posts: 16
Joined: 01 May 2018, 20:39

Re: Unity Font not found

16 Apr 2020, 09:59

By default path searching is working in CURRENT directory. For example you have folder layout

-- Fonts
-- Views

Then in in XAML placed in view folder you use Source="../Fonts/<path>". ../ is one-level up.
User avatar
Site Admin
Posts: 2569
Joined: 22 Dec 2011, 19:20

Re: Unity Font not found

16 Apr 2020, 10:19

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.

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests