TAChart: Use textLength attribute in SVG drawer

git-svn-id: trunk@30241 -
This commit is contained in:
ask 2011-04-08 08:45:46 +00:00
parent 1c6efec231
commit eb53bb345e

View File

@ -324,10 +324,11 @@ var
begin
p := RotatePoint(Point(0, FontSize), -FFontAngle) + Point(AX, AY);
WriteFmt(
'<text x="%d" y="%d" ' +
'<text x="%d" y="%d" textLength="%d" ' +
'style="stroke: none; fill: %s; font-family: %s; font-size: %dpt;">' +
'%s</text>',
[p.X, p.Y, ColorToHex(FFont.FPColor), FFont.Name, FontSize, AText]);
[p.X, p.Y, SimpleTextExtent(AText).X,
ColorToHex(FFont.FPColor), FFont.Name, FontSize, AText]);
end;
function TSVGDrawer.StyleFill: String;