mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-19 18:00:23 +08:00
doc: Allow repositioning the EPS logo
Allow specifying an offset from the computed position of the EPS logo: \M{logoxadj}{adjustment} \M{logoyadj}{adjustment} The adjustment is given in Postscript points (1/72" = 0.352778 mm) and using the Postscript coordinate system, with the origin in the lower left. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
8aa01db9b4
commit
13ac842709
@ -1148,6 +1148,13 @@ if ( defined($metadata{epslogo}) &&
|
||||
$x = ($psconf{pagewidth}-$width*$scale)/2;
|
||||
$y = ($psconf{pageheight}-$height*$scale)/2;
|
||||
|
||||
if ( defined($metadata{logoxadj}) ) {
|
||||
$x += $metadata{logoxadj};
|
||||
}
|
||||
if ( defined($metadata{logoyadj}) ) {
|
||||
$y += $metadata{logoyadj};
|
||||
}
|
||||
|
||||
print "BeginEPSF\n";
|
||||
print $x, ' ', $y, " translate\n";
|
||||
print $scale, " dup scale\n" unless ( $scale == 1 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user