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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -