C# 获取系统字体方法
程序员文章站
2022-04-10 23:52:31
//需要引用命名空间 using System.Drawing; using System.Drawing.Text; //获取系统字体方法 public dynamic GetFontNames() { FontFamily[] fontFamilies; InstalledFontCollect... ......
//需要引用命名空间 using system.drawing; using system.drawing.text; //获取系统字体方法 public dynamic getfontnames() { fontfamily[] fontfamilies; installedfontcollection installedfontcollection = new installedfontcollection(); fontfamilies = installedfontcollection.families; return fontfamilies; }