Feature #207

In pstext allow the use of -Cdx/dy to set clearance between text and line when -Ddistv[pen]

Added by Eduardo over 4 years ago. Updated over 3 years ago.

Status:In ProgressStart date:2013-01-28
Priority:NormalDue date:
Assignee:-% Done:


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.

text.pdf (3.45 KB) Eduardo, 2014-02-08 17:39

text2.pdf (3.47 KB) Eduardo, 2014-02-08 17:39


#1 Updated by Florian over 3 years ago

  • Target version changed from 5.1.0 to Candidate for next minor release

#2 Updated by Paul over 3 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 3 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.

Also available in: Atom PDF