summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/lab/index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/lab/index.html b/docs/lab/index.html
index 978b4d6a0..7a42decee 100644
--- a/docs/lab/index.html
+++ b/docs/lab/index.html
@@ -1598,8 +1598,12 @@ document.head.appendChild(fontCSS)
// not exposed in UI as it only works when serving the site locally
// with fonts in the build/fonts directory.
const hinted = location.search.indexOf('hinted=1') != -1
+const familyName = hinted ? fontFamilyNameHinted : fontFamilyName;
-document.body.style.fontFamily = hinted ? fontFamilyNameHinted : fontFamilyName;
+if (hinted) {
+ document.body.classList.add('hinted')
+}
+document.body.style.fontFamily = familyName
class BoundVar {
constructor(name, e, valueGetter, valueSetter, parentVars) {