Replies: 1 comment
-
These are the two font resources I attempted to use, named "FZFW ZhuZi A YuanS M" and "FZFW ZhuZi A YuanS R", but in parsing, they both appear as "FZFW ZhuZi A YuanS". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This might be a duplicate question.
I want to create a FontFamilyDictionary by inheriting from ResourceDictionary to manage custom fonts in my application.
However, I'm facing some issues when trying to locate resources and create FontFamily objects.
When creating a FontFamily resource, I need to provide a string in the format of font file path#font name.
I tried using EmbeddedFontCollection and FontManager.Current.AddFontCollection methods to obtain the correct font name.
However, the results are completely different from the actual font names, so perhaps there is an issue with the way I'm using them.
How should I correctly add font resources to a dictionary?
Beta Was this translation helpful? Give feedback.
All reactions