using font file in wpf usercontrol -


I am using a WPF UserControl inside the Winforms form. I have to do this work

I want the text that I use to use a font in WPF UserControl which I have as a TTF.

I do not know how to refer to this TTF and control is used. I am assuming that I should load TTF (this is not an installed font) in user control and tell the control (a label) to use it, but I only look at the font-family context.

How to load a font in wpf from the TTF font file

  & Lt; TextBlock FontSize = "48" fontfamily = "/ Asset / Fonts / Algeria. Ttf # Algeria" fontweit = "normal" & gt; Test value & lt; / TextBlock & gt;   

Use the resource to store the font ...

 Enter image details here

Comments

Popular posts from this blog

Out of index C/C++ -

algorithm - Graph cut with python: How to set up the graph correctly? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -