Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Using Custom Font in xctk:RichTextBox without actually installing the font

$
0
0
Hi,

I am trying to use Custom Font in RichTextBox, without installing that font.

My requirements are, I have TTF files, I need to use that font in the application without actually installing it. RichTextBox default font should be custom font and also font should be listed in RichTextFormatBar FontFamily combobox too.

I added my custom font (using GetFontFamilies) in the list of _cmbFontFamilies, so when i select the text and change its font to my custom font from RichTextFormatBar, font is getting changed properly. But when i reopen the application, text is in Arial font.

Can you suggest something for this?

Thanks in advance.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>