font-svg

https://fontawesome.com/

http://www.fontawesome.com.cn/cheatsheet/

http://www.iconfont.cn/

   string lj = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "fontawesome-webfont.ttf");
            PrivateFontCollection pf = new PrivateFontCollection();
            pf.AddFontFile(lj);

            int x = Convert.ToInt32("F000", 16);
            int d = Convert.ToInt32("F2E0", 16);
            for (char i = '\uF000'; i <= '\uF2E0'; i++)
            {

                textBox1.Text += "[" + i.ToString() + "|" + Convert.ToString(i, 16).ToUpper() + "]";

            }



            textBox1.Font = new System.Drawing.Font(pf.Families[0], 18);

  

  button1.Text = "\uf171";
            button1.Font = new Font("FontAwesome", 30);


            label1.Text = "\uF00C";
         
            label1.Font = new Font("FontAwesome", 90);
            label1.BackColor = Color.Transparent;

            button2.ForeColor = Color.Green;

  

posted @ 2017-07-13 13:42  hi.....  阅读(161)  评论(0编辑  收藏  举报