Chinese font style uwp

broken image
broken image

In some cases the actual font name does not really match the advertised name displayed in default font viewer on Windows, so setting it just right was kind of a guessing game. MyTextBlock.FontFamily = new FontFamily( '/Assets/Fonts/Lato-Hairline.ttf#Lato Hairline') For custom fonts we have to be more specific: For the preinstalled fonts it is sufficient to just use the font name itself. otf file and add it into your UWP app project as a Content file.Įnsure that the font is added with the Content Build Action Setting the font in XAMLĮach text control in XAML has a FontFamily property, which you can use to set the font. After you choose the font you like, download its. Google Fonts and Font Squirrel are both great collections of countless free fonts to choose from. There are many fonts you can use for free (even in commercial projects), as well as many fonts you can purchase.

broken image

Getting a fontįirstly find a custom font you want to use. eot fonts are currently not supported in C# UWP apps (but you can use them in JavaScript UWP apps). otf font file and include it in your application package.woff and.

broken image

Although the default Windows 10 font - Segoe UI - is certainly very beautiful, you might sometimes want to give your Universal Windows Platform app a bit of uniqueness and personality using a custom font.

broken image