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

    InstalledFontCollection ifc = new InstalledFontCollection();
                    FontFamily[] ff = ifc.Families;
                    int i = 0;
                    foreach (FontFamily f in ff)
                    {

                        ListItem lt = new ListItem(f.Name.ToString(), f.Name.ToString());
                        if (System.Text.Encoding.GetEncoding("gb2312").GetBytes(lt.Value.Remove(1)).Length == 2)
                        {
                            i++;
                            if (lt.ToString() == Convert.ToString(dt_watermark.Rows[0]["WatermarkFonts"]))
                            {
                                builder.Append("<option value=\"" + lt + "\"  selected='selected'>" + lt + "</option>");
                            }
                            else
                            {
                                builder.Append("<option value=\"" + lt + "\">" + lt + "</option>");
                            }                      
                        }
                    }

  • 相关阅读:
    WebSphere--安全性
    WebSphere--会话跟踪
    WebSphere--用户简要表
    WebSphere--连接管理器
    WebSphere--部署Servlet
    WebSphere--定制配置
    WebSphere--安装与配置
    WebSphere--基本特性
    六、Html头部和元信息
    五、Html表单标签
  • 原文地址:https://www.cnblogs.com/caishuowen/p/2071178.html
Copyright © 2011-2022 走看看