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 98fba1e commit be18d55
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 @@ -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) {
Expand Down

0 comments on commit be18d55

Please sign in to comment.