From 119cefd4bda94099ec7ac60eb3fda1c6310c9a56 Mon Sep 17 00:00:00 2001 From: Georg Tomitsch Date: Mon, 8 Jun 2026 10:34:20 +0200 Subject: [PATCH] Fix WebGL page number texture crash --- public/js/book-texture-renderer-module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/book-texture-renderer-module.js b/public/js/book-texture-renderer-module.js index c26db7e..ce06240 100644 --- a/public/js/book-texture-renderer-module.js +++ b/public/js/book-texture-renderer-module.js @@ -324,7 +324,7 @@ class BookTextureRendererModule extends BaseModule { ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.font = `${Math.round(this.metrics.bodyFontSizePx * 0.68)}px ${this.metrics.typography.fontFamily}`; - ctx.fillText(String(meta.pageNumber), content.x + content.width * 0.5, content.y + content.height + this.metrics.margin.bottom * 0.48); + ctx.fillText(String(meta.pageNumber), content.x + content.width * 0.5, content.y + content.height + this.metrics.margins.bottom * 0.48); ctx.restore(); }