为了能够清晰区分 1Il 0Oo、准确识别相似字符,测试了 70+ 种 Windows 系统下使用的字体,得到 3 种能清晰区分 1Il 0Oo 的字体,效果如下:
# | 字体 | 1, i, l, 零和欧, 全角 |
1 | Consolas | 1iIl 0Oo0Oo ø |
2 | Tahoma | 1iIl 0Oo0Oo ø |
3 | Verdana | 1iIl 0Oo0Oo ø |
在这 3 种字体中,Verdana 和 Tahoma 效果最好,Consolas 次之,在 Excel 中也常用到 Tahoma。
最终采取的方案是:
.input { font-family: Verdana, Tahoma, Consolas, monospace; }
全部对比效果如下:
# | 字体 | 1, i, l, 零和欧, 全角 |
1 | Consolas | 1iIl 0Oo0Oo ø |
2 | Tahoma | 1iIl 0Oo0Oo ø |
3 | Verdana | 1iIl 0Oo0Oo ø |
4 | ‘Angsana New’ | 1iIl 0Oo0Oo ø |
5 | Arial | 1iIl 0Oo0Oo ø |
6 | ‘Arial Black’ | 1iIl 0Oo0Oo ø |
7 | Basemic | 1iIl 0Oo0Oo ø |
8 | Batang | 1iIl 0Oo0Oo ø |
9 | ‘Book Antiqua’ | 1iIl 0Oo0Oo ø |
10 | ‘Browallia New’ | 1iIl 0Oo0Oo ø |
11 | Calibri | 1iIl 0Oo0Oo ø |
12 | Cambria | 1iIl 0Oo0Oo ø |
13 | Candara | 1iIl 0Oo0Oo ø |
14 | Century | 1iIl 0Oo0Oo ø |
15 | ‘Comic Sans MS’ | 1iIl 0Oo0Oo ø |
16 | Constantia | 1iIl 0Oo0Oo ø |
17 | Corbel | 1iIl 0Oo0Oo ø |
18 | ‘Cordia New’ | 1iIl 0Oo0Oo ø |
19 | Courier | 1iIl 0Oo0Oo ø |
20 | ‘Courier New’ | 1iIl 0Oo0Oo ø |
21 | DilleniaUPC | 1iIl 0Oo0Oo ø |
22 | Dotum | 1iIl 0Oo0Oo ø |
23 | Garamond | 1iIl 0Oo0Oo ø |
24 | Geneva | 1iIl 0Oo0Oo ø |
25 | Georgia | 1iIl 0Oo0Oo ø |
26 | Gulim | 1iIl 0Oo0Oo ø |
27 | GungSuh | 1iIl 0Oo0Oo ø |
28 | Impact | 1iIl 0Oo0Oo ø |
29 | JasmineUPC | 1iIl 0Oo0Oo ø |
30 | ‘Lucida Console’ | 1iIl 0Oo0Oo ø |
31 | ‘Lucida Sans Unicode’ | 1iIl 0Oo0Oo ø |
32 | ‘Malgun Gothic’ | 1iIl 0Oo0Oo ø |
33 | Mangal | 1iIl 0Oo0Oo ø |
34 | Marlett | 1iIl 0Oo0Oo ø |
35 | Meiryo | 1iIl 0Oo0Oo ø |
36 | ‘Microsoft JhengHei’ | 1iIl 0Oo0Oo ø |
37 | MingLiu | 1iIl 0Oo0Oo ø |
38 | MingLiU_HKSCS | 1iIl 0Oo0Oo ø |
39 | monospace | 1iIl 0Oo0Oo ø |
40 | Modern | 1iIl 0Oo0Oo ø |
41 | ‘MS Gothic’ | 1iIl 0Oo0Oo ø |
42 | ‘MS Mincho’ | 1iIl 0Oo0Oo ø |
43 | ‘MS PGothic’ | 1iIl 0Oo0Oo ø |
44 | ‘MS PMincho’ | 1iIl 0Oo0Oo ø |
45 | ‘MS Sans Serif’ | 1iIl 0Oo0Oo ø |
46 | ‘MS Serif’ | 1iIl 0Oo0Oo ø |
47 | ‘Palatino Linotype’ | 1iIl 0Oo0Oo ø |
48 | PMingliU | 1iIl 0Oo0Oo ø |
49 | PMingLiU-ExtB | 1iIl 0Oo0Oo ø |
50 | serif | 1iIl 0Oo0Oo ø |
51 | Symbol | 1iIl 0Oo0Oo ø |
52 | Times | 1iIl 0Oo0Oo ø |
53 | ‘Times New Roman’ | 1iIl 0Oo0Oo ø |
54 | ‘Trebuchet MS’ | 1iIl 0Oo0Oo ø |
55 | Wingdings | 1iIl 0Oo0Oo ø |
56 | ‘Yu Gothic’ | 1iIl 0Oo0Oo ø |
57 | ‘Yu Mincho’ | 1iIl 0Oo0Oo ø |
58 | 方正舒体 | 1iIl 0Oo0Oo ø |
59 | 方正姚体 | 1iIl 0Oo0Oo ø |
60 | 仿宋 | 1iIl 0Oo0Oo ø |
61 | 黑体 | 1iIl 0Oo0Oo ø |
62 | 华文彩云 | 1iIl 0Oo0Oo ø |
63 | 华文仿宋 | 1iIl 0Oo0Oo ø |
64 | 华文行楷 | 1iIl 0Oo0Oo ø |
65 | 华文琥珀 | 1iIl 0Oo0Oo ø |
66 | 华文楷体 | 1iIl 0Oo0Oo ø |
67 | 华文隶书 | 1iIl 0Oo0Oo ø |
68 | 华文宋体 | 1iIl 0Oo0Oo ø |
69 | 华文细黑 | 1iIl 0Oo0Oo ø |
70 | 华文新魏 | 1iIl 0Oo0Oo ø |
71 | 华文中宋 | 1iIl 0Oo0Oo ø |
72 | 楷体 | 1iIl 0Oo0Oo ø |
73 | 隶书 | 1iIl 0Oo0Oo ø |
74 | 宋体 | 1iIl 0Oo0Oo ø |
75 | 宋体-ExtB | 1iIl 0Oo0Oo ø |
76 | 微软雅黑 | 1iIl 0Oo0Oo ø |
77 | 新宋体 | 1iIl 0Oo0Oo ø |
78 | 幼圆 | 1iIl 0Oo0Oo ø |
真有耐性啊。。。
为了视力…