Skip to content

Commit 190feb1

Browse files
authored
attributes.textWrap: take letter-spacing into account (#1409)
1 parent 684a4d7 commit 190feb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dia/attributes.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ const attributesNS = {
353353
'font-weight': attrs['font-weight'] || attrs.fontWeight,
354354
'font-size': attrs['font-size'] || attrs.fontSize,
355355
'font-family': attrs['font-family'] || attrs.fontFamily,
356-
'lineHeight': attrs.lineHeight
356+
'lineHeight': attrs.lineHeight,
357+
'letter-spacing': 'letter-spacing' in attrs ? attrs['letter-spacing'] : attrs.letterSpacing
357358
}, {
358359
// Provide an existing SVG Document here
359360
// instead of creating a temporary one over again.

0 commit comments

Comments
 (0)