Option to change the font family in epub viewer

This commit is contained in:
MxMarx 2023-10-26 02:01:40 -07:00
parent 8dc4490169
commit 24228b4424
15 changed files with 45 additions and 11 deletions

View file

@ -42,6 +42,7 @@ export default {
rendition: null,
ereaderSettings: {
theme: 'dark',
font: 'serif',
fontScale: 100,
lineSpacing: 115,
spread: 'auto'
@ -130,6 +131,7 @@ export default {
const fontScale = settings.fontScale || 100
this.rendition.themes.fontSize(`${fontScale}%`)
this.rendition.themes.font(settings.font)
this.rendition.spread(settings.spread || 'auto')
},
prev() {