In pstext allow the use of -Cdx/dy to set clearance between text and line when -Ddistv[pen]
|Status:||In Progress||Start date:||2013-01-28|
|Target version:||Candidate for next minor release|
as subject says, else line and text are glued, ie:
echo "1.91739628589 1.59140756803 T" | pstext -R0/10/0/10 -Jx1 -D-1cv0.5p,black -F+f10,Helvetica,black+a0+jCB -V > text.ps
also when using -G and/or -W line gets inside textbox.
#2 Updated by Paul over 4 years ago
- Status changed from New to In Progress
Well, -C is used to set the box clearance but you are talking about shortening the line from the specified point towards the modified location. What is needed is a "second" clearance parameter that says how much of that offset distance. perhaps a +c<clearance> modifier which can take percentage or a distance. This is used to shorten the line from the actual distance to the given length or fraction. Would that work? Or are you just concerned with the fact that the line is inside the text box (and no -G is used to cover it up)? It may be possible to lay down the text box as a clip path first, then draw the line, then activate the outline/fill of the box (but all this is done in PostScript). Is this what you are looking for?
#3 Updated by Eduardo over 4 years ago
When I posted this my problem was that the -D line was glued with the text (text.pdf). Yes, this could be solved withe a +c<clearance> modifier.
Now that you mention it, there is a problem also with the line inside the box (text2.pdf). Yes, we can paint it, but a clip would be nice.