Re: Fonts
Hi,
A font resource is a text file with a list of file font references, one item per line. For example, Roboto.font contains:
Note that referenced .ttf files must be found next to the .font file. The .font file can contain as many references as you wish, even a single one, but it is recommended that all the referenced files belongs to the same font family being that family the name of the .font file.
The above .font could be used this way:
Note that the reference to the font is relative to the location of the .xaml file. Here we are supposing that Roboto.font is located in the subfolder Fonts/ relative to the .xaml.
Referenced fonts must always be inside the project folder. Operating system fonts are not supported for example.
A font resource is a text file with a list of file font references, one item per line. For example, Roboto.font contains:
Code: Select all
Roboto-Regular.ttf
Roboto-Italic.ttf
Roboto-Bold.ttf
Roboto-BoldItalic.ttf
The above .font could be used this way:
Code: Select all
<Grid>
<Button Content="Click Me!" FontFamily="Fonts/#Roboto" />
<Button Content="Click Me!" FontFamily="Fonts/#Roboto" FontWeight="Bold" />
</Grid>
Referenced fonts must always be inside the project folder. Operating system fonts are not supported for example.
Re: Fonts

Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests