Merge pull request #8340 from ydfzgyj/fix-svg-spacing
Fix char spacing bug in SVG mode
This commit is contained in:
commit
c3cfcbe72f
@ -692,7 +692,8 @@ SVGGraphics = (function SVGGraphicsClosure() {
|
|||||||
|
|
||||||
var width = glyph.width;
|
var width = glyph.width;
|
||||||
var character = glyph.fontChar;
|
var character = glyph.fontChar;
|
||||||
var charWidth = width * widthAdvanceScale + charSpacing * fontDirection;
|
var spacing = (glyph.isSpace ? wordSpacing : 0) + charSpacing;
|
||||||
|
var charWidth = width * widthAdvanceScale + spacing * fontDirection;
|
||||||
x += charWidth;
|
x += charWidth;
|
||||||
|
|
||||||
current.tspan.textContent += character;
|
current.tspan.textContent += character;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user