Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Custom Font Documentation #468

Open
HoofedEar opened this issue Apr 25, 2024 · 0 comments
Open

Improve Custom Font Documentation #468

HoofedEar opened this issue Apr 25, 2024 · 0 comments

Comments

@HoofedEar
Copy link

https://docs.avaloniaui.net/docs/guides/styles-and-resources/how-to-use-fonts

This guide could use more details about how the notation here works, for App.axaml:

<Application.Resources>
        <FontFamily x:Key="NunitoFont">avares://GoogleFonts/Assets/Fonts#Nunito</FontFamily>
</Application.Resources>

There are no details about how the #Nunito portion works. Since there is not file named Nunito.ttf in the GoogleFonts/Assets/Fonts folder, it could be assumed that Nunito is the name of the font. However, how would this work with a font that has spaces in its name? Etc etc. It would be useful to have a more in-depth explanation for requirements on the syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant