C#C
C#3y ago
palusi

❔ wpf custom fonts

how can I use custom fonts in my wpf application?

i want to use the Kablammo font from google fonts:
https://fonts.google.com/specimen/Kablammo

I saved the font in my application in a folder named "fonts".
By using this xaml code the font of the text will still have normal font:

  <TextBlock Text="Hello World" FontFamily="fonts/Kablammo-Regular.ttf #Kablammo" FontSize="50"/>


can someone help?
Google Fonts
Kablammo is an experimental variable font, taking inspiration from maximalist curly doodad designs from the ’90s, the Memphis Design movement, as well as cartoo
Was this page helpful?