svg for italic y has small piece missing

11 views
Skip to first unread message

Ray Papworth

unread,
Dec 10, 2022, 5:17:43 AM12/10/22
to MathJax Users
If I make an svg image for italic y using MathJax-demos-node/direct and typing
./tex2svg --inline=false y > y.svg
Then examining the image at a large size there is a part of the curve missing at the top right.

Thanks.

Davide Cervone

unread,
Dec 18, 2022, 11:24:01 AM12/18/22
to mathja...@googlegroups.com
The font metrics in MathJax are given in em units to 3 decimal places.  Most characters are about .5em wide, that means the resolution is about 1/500 of the width of the character, so if you enlarge the character by too large an amount, the round-off for that resolution can become significant.  You are seeing the results of that limited resolution in the bounding box information.

If you are in a situation where you can use CSS, then you should be able to use

svg {
  overflow: visible;
}

(or add overflow:visible to the style attribute on the svg element) in order to see the full character even if the viewBox is slightly too small.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/d78b6899-a9c8-4b95-a9aa-07c3ba450bb6n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages