update glyphinfo
This commit is contained in:
parent
6785f6ea1c
commit
4ab36d3e3b
4 changed files with 79 additions and 176 deletions
|
|
@ -55,6 +55,12 @@ body.single #glyphs {
|
|||
color: white;
|
||||
text-align: center;
|
||||
font-size:1em;
|
||||
white-space: pre;
|
||||
overflow:hidden;
|
||||
cursor: default;
|
||||
}
|
||||
body.single .glyph .names {
|
||||
display: none;
|
||||
}
|
||||
.glyph:hover .name {
|
||||
color: rgba(0,0,0,0.8);
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ function render() {
|
|||
|
||||
// glyphInfo: {
|
||||
// "glyphs": [
|
||||
// [name :string, unicode? :int|null, unicodeName? :string, color? :string|null],
|
||||
// [name :string, unicode? :int|null, unicodeName? :string, mtime? :string, color? :string|null],
|
||||
// ["A", 65, "LATIN CAPITAL LETTER A", "#dbeaf7"],
|
||||
// ...
|
||||
// ],
|
||||
|
|
@ -405,7 +405,8 @@ function renderGlyphGraphicG(g, lastGlyphName, lastGlyphEl, singleGlyph) {
|
|||
name: name,
|
||||
unicode: g[1],
|
||||
unicodeName: g[2],
|
||||
color: g[3],
|
||||
// mtime: g[3],
|
||||
color: g[4],
|
||||
|
||||
// These are all in 1:1 UPM (not scaled)
|
||||
advance: metrics.advance,
|
||||
|
|
|
|||
Reference in a new issue