首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏林德熙的博客

    WPF 从文件加载字体

    假如有字体在 C:\Projects\MyProj\free3of9.ttf ,可以使用 PrivateFontCollection 添加字体。 下面的代码就可以使用本地的 free3of9.ttf ,需要注意添加的 FontFamily 是需要知道字体名,和传入 PrivateFontCollection 才可以使用。 PrivateFontCollection collection = new PrivateFontCollection(); collection.AddFontFile(@"C:\Projects\

    2.7K10发布于 2018-09-18
  • 来自专栏c#Winform自定义控件系列

    (六十六)c#Winform自定义控件-图标

    34 /// The m font collection 35 /// 36 private static readonly PrivateFontCollection m_fontCollection = new PrivateFontCollection(); 37 38 ///

    39 /// The m

    4.1K30发布于 2019-09-29
领券