在silverlight 4中,我需要知道机器中的所有字体名称.使用....
...
var typefaces = System.Windows.Media.Fonts.SystemTypefaces;
foreach (System.Windows.Media.Typeface face in typefaces)
{
System.Windows.Media.GlyphTypeface a;
face.TryGetGlyphTypeface(out a);
FontSource fs = new FontSource(a);
var b = a.FontFileName;
Run Code Online (Sandbox Code Playgroud)
...
我只能得到FontFileName但实际上我们需要字体名来显示它....
怎么能得到这样的信息?
谢谢大家!