Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my first time working with WPF. I have multiple textboxes in a WPF application. I'm applying alt+code symbols to the textboxes, symbols I created myself using FontCreator.

I can see them in the character map, and they show in Winform textboxes as well, but in WPF, many of them just appear as a watermark.

Is there a trick to making them visible in WPF?

What I have tried:

I've attempted to research this using the foremost authority on everything, Google, but I've hit dead ends everywhere.

I'm hoping someone knowledgeable in WPF can offer some insight into this.

Thank you
Posted
Updated 7-Jan-20 1:37am

1 solution

I've never tried to add font resources I've created myself, but I suspect that you will need to add the fonts as an embedded resource in your application. Once you have done this, set the FontFamily on your text boxes to use the embedded font resource.
 
Share this answer
 
Comments
Smeezy 7-Jan-20 7:39am    
Thank you Pete. I'll research that route.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900