From d1690f4317e1220f15ef59b64c4d4a8c07d810b9 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Tue, 9 Jun 2020 13:31:42 +0200 Subject: [PATCH] core/tools: fix pixel-perfect mode for centered text in dialog-designer --- core/tools/dialog-designer/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tools/dialog-designer/script.js b/core/tools/dialog-designer/script.js index a4ef3d0d3e..f4152116a5 100644 --- a/core/tools/dialog-designer/script.js +++ b/core/tools/dialog-designer/script.js @@ -63,7 +63,7 @@ function text(ctx, x, y, text, bold, mono) { function textCenter(ctx, x, y, text, bold, mono) { setFont(ctx, bold, mono); var w = ppMeasureWidth(ctx, text); - ctx.fillText(text, x - w / 2, y); + ppFillText(ctx, text, x - w / 2, y); } function render() {