使用
InstalledFontCollection来获得电脑已经安装的字体有哪些。如图;

 

GDI+ 如何查看电脑已经安装了多少字体。

 代码如下:

 1     //查看电脑有多少字体
 2         private void Form1_Paint(object sender, PaintEventArgs e)
 3         {
 4             FontFamily[] fontfamilys ;
 5             InstalledFontCollection installedFontCollection = new InstalledFontCollection();
 6             fontfamilys = installedFontCollection.Families;
 7             foreach (var item in fontfamilys)
 8             {
 9                 Console.WriteLine("fontname:{0}",item.Name);
10             }
11         }

相关文章:

  • 2021-07-19
  • 2021-08-21
  • 2022-12-23
  • 2021-11-19
  • 2021-06-03
  • 2021-11-04
  • 2021-11-20
  • 2022-02-15
猜你喜欢
  • 2021-06-18
  • 2021-12-01
  • 2022-12-23
  • 2021-07-01
  • 2022-01-17
  • 2021-11-05
相关资源
相似解决方案