Skip to content

Commit ef2d7da

Browse files
committed
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
1 parent 16c7d22 commit ef2d7da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/base/latex.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ function parseLatex(node, arg, label, curr) {
555555
elem.attr('fill', curr.color || arg.color || null);
556556

557557
// set font size directly to element to avoid complex control
558-
if (curr.fsize !== curr.font.size)
558+
if (curr.fsize)
559559
elem.attr('font-size', Math.round(curr.fsize));
560560

561561
if (curr.font && curr.font.isSymbol)

0 commit comments

Comments
 (0)