update: フォントの追加

This commit is contained in:
mai 2024-05-06 10:20:16 +00:00 committed by hijiki
parent a868ef584a
commit d7c01e2d47

View File

@ -34,11 +34,36 @@ export const fontList = {
fontFamily: 'Klee One',
importUrl: 'https://fonts.googleapis.com/css2?family=Klee+One&display=swap',
},
'kosugi-maru': {
name: 'Kosugi Maru',
fontFamily: 'Kosugi Maru',
importUrl: 'https://fonts.googleapis.com/css2?family=Kosugi+Maru&display=swap',
},
'kosugi': {
name: 'Kosugi',
fontFamily: 'Kosugi',
importUrl: 'https://fonts.googleapis.com/css2?family=Kosugi&display=swap',
},
'kiwi-maru': {
name: 'Kiwi Maru',
fontFamily: 'Kiwi Maru',
importUrl: 'https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap',
},
'zen-maru-gothic': {
name: 'Zen Maru Gothic',
fontFamily: 'Zen Maru Gothic',
importUrl: 'https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap',
},
'zen-kaku-gothic-new': {
name: 'Zen Kaku Gothic New',
fontFamily: 'Zen Kaku Gothic New',
importUrl: 'https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New&display=swap',
},
'zen-kurenaido': {
name: 'Zen Kurenaido',
fontFamily: 'Zen Kurenaido',
importUrl: 'https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap',
},
'kaisei-decol': {
name: 'Kaisei Decol',
fontFamily: 'Kaisei Decol',
@ -52,7 +77,6 @@ export const fontList = {
};
export function applyFont(fontname: null | string) {
console.log('called');
let style = document.getElementById('custom-font');
if (!fontname) {