zoukankan      html  css  js  c++  java
  • 获取系统的字体

    InstalledFontCollection ifc = new InstalledFontCollection();
                    FontFamily[] ff = ifc.Families;
                    DropDownList6.Items.Clear();
                    //先加中文的字体
                    foreach (FontFamily f in ff)
                    {
                        if (Regex.IsMatch(f.Name, @"[\u4e00-\u9fa5]+"))
                        {
                            DropDownList6.Items.Add(f.Name);
                        }
                    }
                    //再加英文字体
                    foreach (FontFamily f in ff)
                    {
                        if (!Regex.IsMatch(f.Name, @"[\u4e00-\u9fa5]+"))
                        {
                            DropDownList6.Items.Add(f.Name);
                        }
                    }
  • 相关阅读:
    poj3181(Dollar Dayz)
    poj3666(Making the Grade)
    poj2392(Space Elevator)
    hdu5288(OO’s Sequence)
    hdu5289(Assignment)
    快学scala
    Spark Checkpointing
    Spark Performance Tuning (性能调优)
    Spark Memory Tuning (内存调优)
    Sparkstreaming and Kafka
  • 原文地址:https://www.cnblogs.com/dodui/p/2178896.html
Copyright © 2011-2022 走看看