Browse Source

fix SVG export of RTL text

circular17 3 years ago
parent
commit
df63033ce7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lazpaintcontrols/lcvectortextshapes.pas

+ 1 - 0
lazpaintcontrols/lcvectortextshapes.pas

@@ -2458,6 +2458,7 @@ begin
     begin
       setlength(a, 1);
       a[0] := FloatWithCSSUnit(Left/zoom, cuCustom);
+      if span.textDirection = stdRtl then a[0].value += Width/zoom;
       span.x := a;
       a[0] := FloatWithCSSUnit((Top + fm.Baseline)/zoom, cuCustom);
       span.y := a;