update: フォントの追加
This commit is contained in:
parent
a868ef584a
commit
d7c01e2d47
@ -34,11 +34,36 @@ export const fontList = {
|
|||||||
fontFamily: 'Klee One',
|
fontFamily: 'Klee One',
|
||||||
importUrl: 'https://fonts.googleapis.com/css2?family=Klee+One&display=swap',
|
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': {
|
'zen-maru-gothic': {
|
||||||
name: 'Zen Maru Gothic',
|
name: 'Zen Maru Gothic',
|
||||||
fontFamily: 'Zen Maru Gothic',
|
fontFamily: 'Zen Maru Gothic',
|
||||||
importUrl: 'https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap',
|
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': {
|
'kaisei-decol': {
|
||||||
name: 'Kaisei Decol',
|
name: 'Kaisei Decol',
|
||||||
fontFamily: 'Kaisei Decol',
|
fontFamily: 'Kaisei Decol',
|
||||||
@ -52,7 +77,6 @@ export const fontList = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function applyFont(fontname: null | string) {
|
export function applyFont(fontname: null | string) {
|
||||||
console.log('called');
|
|
||||||
let style = document.getElementById('custom-font');
|
let style = document.getElementById('custom-font');
|
||||||
|
|
||||||
if (!fontname) {
|
if (!fontname) {
|
||||||
|
Loading…
Reference in New Issue
Block a user