Wrong text character spacing when centered or right-aligned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Undecided
|
Unassigned |
Bug Description
Have a look at the attached file "alignment_
What is so special about the "Position" text object in the SVG, and is this desired behavior?
Inkscape version 0.47+devel r9168.
Johan Engelen (johanengelen) wrote : | #1 |
su_v (suv-lp) wrote : | #2 |
Krzysztof Kosinski (tweenk) wrote : | #3 |
Current behavior with kerned text (e.g. imported from PDF) is rather suboptimal, for example when you delete a character with Backspace, the remaining text stays in place. I think we can be smarter than this.
su_v (suv-lp) wrote : | #4 |
IMHO this (bug #538117) is a duplicate of bug #188794 “PDF-imported text boxes cannot be edited properly”.
Krzysztof Kosinski (tweenk) wrote : | #5 |
That's right. However I think this is not a Won't Fix - the new characters should be inserted with default kerning, and the remaining characters appropriately shifted.
AFAIU the 'x' in
<tspan
style= "font-size: 12px;font- style:normal; font-variant: normal; font-weight: normal; font-stretch: normal; text-align: end;line- height: 125%;writing- mode:lr- tb;text- anchor: end;fill: #000000; fill-opacity: 1;fill- rule:nonzero; stroke: none;font- family: Times New Roman;- inkscape- font-specificat ion:Times New Roman"
x="150. 48129 157.43129 163.68129 168.54379 172.01878 175.49379 178.96878 185.21878"
y="-49. 838703"
sodipodi: role="line"
id="tspan2957 ">Position< /tspan>
positions each character separately (i.e. it is kerned text). You can 'undo' it with 'Text > Remove Manual Kerns'.
see also: www.w3. org/TR/ SVG11/text. html#TSpanEleme ntXAttribute
http://
and 'Text editing tips' in wiki.inkscape. org/wiki/ index.php/ Release_ notes/0. 46#PDF_ and_AI_ import
http://