refs #579 Load custom font

This commit is contained in:
AkiraFukushima 2018-09-26 21:06:53 +09:00
parent 7c1bb16147
commit de4f463371
2 changed files with 6 additions and 1 deletions

View File

@ -75,8 +75,8 @@ html, body, #app {
}
--specified-fonts: 'Noto Sans', 'Noto Sans CJK JP', 'Takaoゴシック', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
font-family: var(--specified-fonts);
font-family: var(--specified-fonts);
/*
These selectors are defined in user agent stylesheet. So I override.

View File

@ -46,6 +46,10 @@ const App = {
},
updateLanguage (state, key) {
state.language = key
},
addFont (state, font) {
const list = [font].concat(DefaultFonts)
state.defaultFonts = Array.from(new Set(list))
}
},
actions: {
@ -73,6 +77,7 @@ const App = {
commit('updateNotify', conf.notification.notify)
commit('updateTimeFormat', conf.appearance.timeFormat)
commit('updateLanguage', conf.language.language)
commit('addFont', conf.appearance.font)
resolve(conf)
})
})