Templarian / MaterialDesign-Font

Distribution Repo for the TTF font
https://materialdesignicons.com/
Other
148 stars 8 forks source link

Newer versions of font don't play well with WPF. #8

Open dylanthall opened 2 years ago

dylanthall commented 2 years ago

I'm not quite sure what changed, If I have time ill go through some historical versions to see if I can find the change that broke it. What I can say for certain though, is that If this font is included anywhere in a WPF project it takes 12.5s for Windows to load it from system fonts. I did not try to load the font in as its own resource however, and that may fix the problem. That being said, I downloaded an older commit from back in August 2020 and it worked just fine. 255ms instead of 12,500.

This was very reproducible All I had to do was create a WPF window in code that used a XAML file which depends on this font. As I know this is not a WPF git I'm sure this issue will basically be useless to you, but I'm putting it here in hopes that it helps someone else. Older versions of this font work in WPF, newer ones seem to take upwards of 12-15 seconds to load in, causing large application hangs.

adamhewitt627 commented 2 years ago

Same issue for me. This would appears to relate to https://github.com/Templarian/MaterialDesign/issues/6519.

Templarian commented 2 years ago

Interesting. This repo should generate with the newest version let me check what's going on.