我在Grid中使用Page中的代码来使Page使用来自/fonts/pirulen rg.ttf的自定义字体。
<TextBlock HorizontalAlignment="Left" Margin="617,49,0,0" Text="I Am the New Font" FontFamily="fonts/pirulen rg.ttf#Pirulen Rg" />
在属性编辑器中打开此Textblock时,可以识别字体样式,但在设计器中不能识别,在应用程序运行时也不能识别字体样式(默认为系统的字体集合中的现有字体
假设我有一个文档的黑白图像,其中只使用了2或3种字体。三种字体中的一种用于标题,另一种是小字体(或者至少是非常普通的字体)。例如,其中一小段文本可能是:
Fancy/Bolded/Italicized/Script font: The Best Soup In The World
Plain/small: Made with tap water, salt, and sugar.
Fancy/Bolded/Italicized/Script font: The Best Soup and 1/2 Sandwich In The World
Plain/small: Made with flo