We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 252f936 commit b7bd643Copy full SHA for b7bd643
1 file changed
src/WpfMath/TexFormula.cs
@@ -104,7 +104,8 @@ internal Box CreateBox(TexEnvironment environment)
104
105
internal static SystemFont GetSystemFont(string fontName, double size)
106
{
107
- var fontFamily = Fonts.SystemFontFamilies.First(ff => ff.ToString() == fontName);
+ var fontFamily = Fonts.SystemFontFamilies.First(
108
+ ff => ff.ToString() == fontName || ff.FamilyNames.Values?.Contains(fontName) == true);
109
return new SystemFont(size, fontFamily);
110
}
111
0 commit comments