Skip to content

Commit

Permalink
Fix - always set font size in latex
Browse files Browse the repository at this point in the history
In old logic font size was set when differs from FontHandler attributes
But this not properly working.
Later apply better fix
  • Loading branch information
linev committed Oct 8, 2024
1 parent 16c7d22 commit ef2d7da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base/latex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,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 && curr.font.isSymbol)
Expand Down

0 comments on commit ef2d7da

Please sign in to comment.