summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2018-09-04 02:06:04 +0300
committerRasmus Andersson <rasmus@notion.se>2018-09-04 02:06:04 +0300
commit4ab36d3e3bec37edc7e0eb7f9e20b0d14d37071c (patch)
tree3a96301ecb0ec566de7cfa779504a64f24d54e3c /docs
parent6785f6ea1cb049c2899ba8db602fe466c8b2e2a5 (diff)
downloadinter-4ab36d3e3bec37edc7e0eb7f9e20b0d14d37071c.tar.xz
update glyphinfo
Diffstat (limited to 'docs')
-rw-r--r--docs/glyphs/glyphs.css6
-rw-r--r--docs/glyphs/glyphs.js5
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/glyphs/glyphs.css b/docs/glyphs/glyphs.css
index c2af47a2d..08be80427 100644
--- a/docs/glyphs/glyphs.css
+++ b/docs/glyphs/glyphs.css
@@ -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);
diff --git a/docs/glyphs/glyphs.js b/docs/glyphs/glyphs.js
index 88e5ddb1b..b6cd24740 100644
--- a/docs/glyphs/glyphs.js
+++ b/docs/glyphs/glyphs.js
@@ -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,