Доделал перенос по слогам

This commit is contained in:
Book Pauk
2019-01-17 01:15:12 +07:00
parent f622dbca7d
commit 439296bf04
2 changed files with 46 additions and 14 deletions

View File

@@ -54,7 +54,7 @@ class TextPage extends Vue {
this.canvas.height = this.$refs.main.clientHeight;
this.lineHeight = this.fontSize + this.lineInterval;
this.pageLineCount = Math.floor(this.canvas.height/this.lineHeight);
this.w = this.canvas.width - 2*this.indent - 200;
this.w = this.canvas.width - 2*this.indent;
if (this.parsed) {
this.parsed.p = this.p;
@@ -82,7 +82,7 @@ class TextPage extends Vue {
this.textColor = 'black';
this.backgroundColor = '#478355';
this.fontStyle = '';// 'bold','italic'
this.fontSize = 20;// px
this.fontSize = 40;// px
this.fontName = 'arial';
this.lineInterval = 5;// px, межстрочный интервал
this.textAlignJustify = true;// выравнивание по ширине