winform 加载 element-ui 并显示图标

var elementFonts = new PrivateFontCollection();
elementFonts.AddFontFile(Application.StartupPath + "\\Fonts\\element-icons.ttf");
var elementIconFont = new Font(elementFonts.Families[0], 32 * 0.75f);
lblIcon.Font = elementIconFont;
lblIcon.ForeColor = Color.Gray;
lblIcon.Text = "\ue772";

 

posted on 2024-04-01 23:12  空明流光  阅读(24)  评论(0编辑  收藏  举报

导航