Skip to content

Commit

Permalink
add glyph character to the glyph inspector for easier copying
Browse files Browse the repository at this point in the history
  • Loading branch information
manylegged authored and Connum committed Oct 19, 2023
1 parent bcdd238 commit c24dee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/glyph-inspector.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ <h1>Free Software</h1>
var glyph = font.glyphs.get(glyphIndex),
html = '<dl>';
html += '<dt>name</dt><dd>'+glyph.name+'</dd>';
html += '<dt>glyph</dt><dd>'+String.fromCodePoint.apply(null, glyph.unicodes) + '</dd>';

if (glyph.unicodes.length > 0) {
html += '<dt>unicode</dt><dd>'+ glyph.unicodes.map(formatUnicode).join(', ') +'</dd>';
Expand Down

0 comments on commit c24dee8

Please sign in to comment.