We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a769436 commit ab5c2c2Copy full SHA for ab5c2c2
docs/glyph-inspector.html
@@ -130,7 +130,12 @@ <h1>Free Software</h1>
130
}
131
var glyph = font.glyphs.get(glyphIndex),
132
html = '<dl>';
133
- html += '<dt>name</dt><dd>'+glyph.name+'</dd>';
+ html += '<dt>glyphName</dt><dd>'+glyph.name+'</dd>';
134
+ var char = String.fromCodePoint.apply(null, glyph.unicodes);
135
+ html += '<dt>glyph</dt><dd>'+char+'</dd>';
136
+ var hex = char.codePointAt(0).toString(16);
137
+ html += '<dt>htmlCode</dt><dd>&#x'+hex+';</dd>';
138
+ html += '<dt>cssCode</dt><dd>content: \'\\'+hex+'\';</dd>';
139
140
if (glyph.unicodes.length > 0) {
141
html += '<dt>unicode</dt><dd>'+ glyph.unicodes.map(formatUnicode).join(', ') +'</dd>';
0 commit comments