From be18d5596d6ab171e53c5a057fe60f7c703bcbdf Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Tue, 8 Oct 2024 09:45:21 +0200 Subject: [PATCH] Fix - always set font size in latex In old logic font size was set when differs from FontHandler attributes But this not properly working. Later apply better fix --- modules/base/latex.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/base/latex.mjs b/modules/base/latex.mjs index 830ea6d60..29ece1276 100644 --- a/modules/base/latex.mjs +++ b/modules/base/latex.mjs @@ -578,7 +578,7 @@ function parseLatex(node, arg, label, curr) { elem.attr('fill', curr.color || arg.color || null); // set font size directly to element to avoid complex control - if (curr.fsize !== curr.font.size) + if (curr.fsize) elem.attr('font-size', Math.round(curr.fsize)); if (curr.font?.isSymbol) {