【转】关于font face="Webdings"的对照


用法如下:
<font face='webdings'  size="14">i</font>
其中 i 可以用一下来的一些字符来表示,具体代表的含义如下图:

0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z , . / ' [ ] \ \ = - < > ? : \ " { } | + _ ) ( * & ^ % $ # @ ! ` ~

上面的每一个图形对应一个字符,字体为webdings的 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z , . / ' [ ] \ \ = - < > ? : \ " { } | + _ ) ( * & ^ % $ # @ ! ` ~

 

还有一种wingdings的字体,对照如下

0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z , . / ' [ ] \ \ = - < > ? : \ " { } | + _ ) ( * & ^ % $ # @ ! ` ~

上面每一个图形对应一个字符,字体为wingdings的 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z , . / ' [ ] \ \ = - < > ? : \ " { } | + _ ) ( * & ^ % $ # @ ! ` ~

 

不过上面的标记可能不支持firefox浏览器,原因是网页头部定义了

HTML 代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns="http://www.w3.org/1999/xhtml">

把这段代码去掉就正常了。

 

但这终究不是解决办法,有时候需要这段html代码,最后只能用标准的Unicode字符代替,如:← 和 → 等,标准可查询: http://www.unicode.org/charts/

转载于:https://www.cnblogs.com/Miko2012/archive/2012/12/24/2830890.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您可以通过在单元格字体上方或下方使用字符代码添加第二个图标来实现在GridControl的单个单元格内添加两个图标的效果。为此,您可以使用类似如下代码的方法: ```csharp gridControl1[0, 1].Value = "Hello World"; // 空心圆 gridControl1[0, 1].Appearance.Cell.Options.UseTextOptions = true; gridControl1[0, 1].Appearance.Cell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; gridControl1[0, 1].Appearance.Cell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; gridControl1[0, 1].Appearance.Cell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; gridControl1[0, 1].Appearance.Cell.TextOptions.Trimming = DevExpress.Utils.Trimming.None; gridControl1[0, 1].Appearance.Cell.Font = new System.Drawing.Font("Webdings", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); gridControl1[0, 1].Appearance.Cell.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128))))); // 空心圆颜色 gridControl1[0, 1].Appearance.Cell.TextOptions.Trimming = DevExpress.Utils.Trimming.None; gridControl1[0, 1].Appearance.Cell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; gridControl1[0, 1].Value += " c"; // 实心圆 gridControl1[0, 1].Appearance.Cell.Options.UseTextOptions = true; gridControl1[0, 1].Appearance.Cell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; gridControl1[0, 1].Appearance.Cell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center; gridControl1[0, 1].Appearance.Cell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; gridControl1[0, 1].Appearance.Cell.TextOptions.Trimming = DevExpress.Utils.Trimming.None; gridControl1[0, 1].Appearance.Cell.Font = new System.Drawing.Font("Wingdings", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(2))); gridControl1[0, 1].Appearance.Cell.ForeColor = System.Drawing.Color.Green; // 实心圆颜色 gridControl1[0, 1].Appearance.Cell.TextOptions.Trimming = DevExpress.Utils.Trimming.None; gridControl1[0, 1].Appearance.Cell.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Default; gridControl1[0, 1].Value += " a"; ``` 这将在GridControl的第一个单元格内添加两个图标(一个空心圆和一个实心圆)。您可以根据需要更改字符代码、设置字体和颜色等。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值