8 Star 18 Fork 7

Hsu / FontAwesome

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
seay 提交于 2017-01-24 22:19 . updated README.md file

FontAwesomeNet

Font-Awesome for .NET(Windows Forms and WPF)

AppVeyor build status NuGet MyGet

sample application

开发环境

Windows 10 + Visual Studio 2013 + .NetFramework 3.5

功能

  • 将 FontAwesome 图标生成图片和 Icon 图标

使用

可以在 Windows Forms 和 WPF 程序中使用。

  • 添加类库,可以通过 nuget 安装。
PM Install-Package FontAwesomeNet
  • 添加 FontAwesomeNet 命名空间:FontAwesomeNet

  • 示例

// get FontAwesome icon class names(type is Dictionary<string, int>)
string[] names = FontAwesome.TypeDict.Select(v => v.Key).ToArray();

// use FontAwesome icon class name get FontAwesome icon Unicode value
int val = FontAwesome.TypeDict["fa-heart"];//0xf004

// defalut:
Bitmap bmp = FontAwesome.GetImage(val);//0xf004
Icon ico = FontAwesome.GetIcon(val);//0xf004

// custom:
FontAwesome.IconSize = 128;//change icon size
FontAwesome.ForeColer = Color.Purple;//change icon forecolor
Bitmap bmp = FontAwesome.GetImage(val);//0xf004
Icon ico = FontAwesome.GetIcon(val);//0xf004

协议

MIT License

如有问题,欢迎指出。

C#
1
https://gitee.com/seayxu/FontAwesome.git
git@gitee.com:seayxu/FontAwesome.git
seayxu
FontAwesome
FontAwesome
master

搜索帮助