From 099ee994f78352de75e47e3e04e79bfe7b3b2f49 Mon Sep 17 00:00:00 2001 From: Corps Zolea Date: Fri, 9 Aug 2019 03:50:23 +0800 Subject: [PATCH] feat: add custom font support --- dist/view.js | 2 +- src/view.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/view.js b/dist/view.js index 11b44ab..d0467a7 100644 --- a/dist/view.js +++ b/dist/view.js @@ -22,7 +22,7 @@ export default class CaraokeView extends HTMLElement { text-shadow: 0 0 0.05em white; transition: color 1s; font-size: 5em; - font-family: "Source Han Serif"; + font-family: caraoke-custom-font, "Source Han Serif"; font-weight: 900; } #drawer > #pointer ~ * { diff --git a/src/view.ts b/src/view.ts index 1a24a23..8f746da 100644 --- a/src/view.ts +++ b/src/view.ts @@ -28,7 +28,7 @@ export default class CaraokeView extends HTMLElement { text-shadow: 0 0 0.05em white; transition: color 1s; font-size: 5em; - font-family: "Source Han Serif"; + font-family: caraoke-custom-font, "Source Han Serif"; font-weight: 900; } #drawer > #pointer ~ * {