1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-21 15:32:25 +03:00

website: cache bust font-files/InterVariable.ttf used by glyph inspector

This commit is contained in:
Rasmus Andersson 2024-11-15 17:00:11 -08:00
parent abfa193c9c
commit 1ea78b645f

View File

@ -1,3 +1,14 @@
---
layout: none
---
{% include defs.html %}{%
for file in site.static_files %}{%
assign _path = file.path | remove_first: "/inter" %}{%
if _path == "/font-files/InterVariable.ttf" %}{%
assign ttf_timestamp = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
endif %}{%
endfor %}
import fontkit from "./fontkit-2.0.2.js"
const { min, max, ceil, floor } = Math
@ -962,5 +973,5 @@ class GlyphInspector {
}
let inspector = new GlyphInspector()
await inspector.loadFont('font-files/InterVariable.ttf')
await inspector.loadFont('font-files/InterVariable.ttf?v={{ttf_timestamp}}')
// await inspector.loadFont('font-files/InterDisplay-Regular.otf')