Wrong SVG width
while processing some DVI files using DVISVGM tool, i noticed that some characters are trimmed at it's end and after investigations i figured out that the SVG width created from DVISVGM is wrong and some characters' widths were not measured.
As Example:
<svg height='12.496pt' version='1.1' viewBox='-0.0498162 -12.4461 3.81852 12.496' width='3.81852pt' xmlns='http://
<defs>
<font horiz-adv-x='0' id='MinionMath-
<font-face ascent='1041' descent='-369' font-family=
<glyph d='M276 0V39C214 45 208 49 208 112V699C152 684 79 670 17 663V628C72 621 77 620 77 561V112C77 52 72 48 11 39V0H276Z' glyph-name='l' horiz-adv-x='285' unicode='l' vert-adv-y='285'/>
</font>
<font horiz-adv-x='0' id='MinionMath-
<font-face ascent='3443' descent='-2856' font-family=
<glyph d='M490 623L468 651C434 618 405 602 360 602C327 602 300 608 259 619C204 636 179 642 146 642C101 642 46 623 0 561L22 533C59 565 94 582 139 582C175 582 196 573 232 564C277 552 312 542 349 542C396 542 452 559 490 623Z' glyph-name=
</font>
</defs>
<g id='page1'>
<text font-family=
<text font-family=
</g>
</svg>
The width "3.81852pt" in the first line of code is not correct because after measuring the width of "~" character i found it equal to "6.73pt" while the SVG width is "3.81852pt" and after fixing the width to be "6.73pt" and fixing the viewbox also, the end result is correct SVG and no characters trimmed at the end.
Why this Happen and what can i do regarding such issues?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- dvisvgm Edit question
- Assignee:
- Martin Gieseking Edit question
- Last query:
- Last reply:
This question was reopened
Can you help with this problem?
Provide an answer of your own, or ask Mohamed Sayed for more information if necessary.