our $lmu_txtboxpadx= $lmu_marktpt * 0.335;
our $lmu_txtboxoff= $lmu_marklw / 2;
our $lmu_txtboxlw= 1;
-our $lmu_lenlabeloff= -$lmu_marklw * 1.0;
+our $lmu_lenlabeloffctr= -$lmu_marklw * 1.0;
+our $lmu_lenlabeloff= $lmu_marklw * 0.5;
our $olu_left= 10 * $scale;
our $olu_right= 217 * $scale - $olu_left;
o(" stroke\n");
}
if ($draw =~ m/D/) {
- my ($pt,$ad,$len);
+ my ($pt,$ad,$len,$off);
$param= ($p0+$p1)*0.5;
$pt= &$calcfn;
$ad= ang2deg($pt->{A});
$len= sprintf "%.0f", $lenperp * abs($p1-$p0);
+ $off= $draw =~ m/C/ ? $lmu_lenlabeloff : $lmu_lenlabeloffctr;
ol(" gsave\n".
" $pt->{X} $pt->{Y} translate\n".
" $ad rotate\n".
- " lf setfont 0 $lmu_lenlabeloff moveto ($len) show\n".
+ " lf setfont\n".
+ " 0 $off moveto\n".
+ " ($len) show\n".
" grestore\n");
}
return unless $draw =~ m/[ARS]/;