diff --git a/public/js/webgl-book-lab.js b/public/js/webgl-book-lab.js index fc6294a..d1fcc91 100644 --- a/public/js/webgl-book-lab.js +++ b/public/js/webgl-book-lab.js @@ -2000,7 +2000,9 @@ function drawTitlePage(ctx, layout) { } function drawNovelPage(ctx, layout, text) { - drawParagraph(ctx, text, layout.x, layout.y, layout.width, layout.em * 0.98, 1.36, layout.em * 1.25); + const projectedX = Math.max(layout.margins.left * 0.25, layout.x - layout.margins.left * 0.75); + const projectedWidth = layout.width * 0.7; + drawParagraph(ctx, text, projectedX, layout.y + layout.height * 0.1, projectedWidth, layout.em * 0.72, 1.36, 0); } function drawCentered(ctx, text, y, size, x = 0, width = ctx.canvas.width) {