Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Font cannot be rendered in WPF

$
0
0

My WPF application is having a front drop-down menu that lists all available fonts, displaying the font name with the fotn itself, as is usual in many applications. In order to avoid crashes, I only list fonts that can actually be displayed by WPF, using the code posted in this thread:

https://social.msdn.microsoft.com/Forums/vstudio/en-US/d4f60d8b-9c45-4160-9fa8-6721206f22b8/wpf-application-crashes-after-setting-label-font-family-to-a-bad-one?forum=wpf

A customer came up with a font that does not pass the test. The font actualy causes exceptions when trying to print it. Yet the font is listed and works fine in non-WPF applications like Word. The font in questions can be downloaded here:

https://www.dropbox.com/s/l6xsouqfno4hmbf/FRUT65.TTF?dl=0

Why is this font not working in WPF? It is very hard to explain to the end user that the .NET Framework considers this font corrupt if it works fine in many other applications.

regards,
Rutger.


Rutger Koperdraad.


Viewing all articles
Browse latest Browse all 18858


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