Добавил шрифты в читалку

This commit is contained in:
Book Pauk
2019-01-17 20:58:57 +07:00
parent 1daa4324d3
commit 48808df3df
22 changed files with 61 additions and 6 deletions

View File

@@ -90,14 +90,15 @@ class TextPage extends Vue {
this.linesDown = null;
//preloaded fonts
this.fontList = ['10px ReaderDefaultFont'];
this.fontList = ['12px ReaderDefault', '12px Arial', '12px ComicSansMS', '12px OpenSans', '12px Roboto', '12px ArialNarrow',
'12px Georgia', '12px Tahoma', '12px Helvetica', '12px CenturySchoolbook'];
//draw props
this.textColor = 'black';
this.backgroundColor = '#478355';
this.fontStyle = '';// 'bold','italic'
this.fontSize = 40;// px
this.fontName = 'ReaderDefaultFont';
this.fontName = 'Arial';
this.lineInterval = 15;// px, межстрочный интервал
this.textAlignJustify = true;// выравнивание по ширине
this.p = 60;// px, отступ параграфа