Beispiel #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 static FontImageHelper()
 {
     FontAwesomeV4        = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.FontAwesome.ttf"));
     ElegantIcons         = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.ElegantIcons.ttf"));
     FontAwesomeV5Brands  = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.fa-brands-400.ttf"));
     FontAwesomeV5Regular = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.fa-regular-400.ttf"));
     FontAwesomeV5Solid   = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.fa-solid-900.ttf"));
 }
Beispiel #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 static FontImageHelper()
 {
     AwesomeFont = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.FontAwesome.ttf"));
     ElegantFont = new FontImages(ReadFontFileFromResource("Sunny.UI.Font.ElegantIcons.ttf"));
 }