"/default-font-family /Times-Roman def",
"/coordfont coord-font-family findfont 8 scalefont def",
"",
+"/InvScaleFactor 1.0 def",
+"/set_scale {",
+" exch dup 1 exch div /InvScaleFactor exch def",
+" exch scale",
+"} bind def",
+"",
"% styles",
"/solid { [] 0 setdash } bind def",
"/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def",
/default-font-family /Times-Roman def
/coordfont coord-font-family findfont 8 scalefont def
+/InvScaleFactor 1.0 def
+/set_scale {
+ exch dup 1 exch div /InvScaleFactor exch def
+ exch scale
+} bind def
+
% styles
/solid { [] 0 setdash } bind def
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
fprintf(Output_file, "%d %d %d beginpage\n", page.x, page.y, N_pages);
if (rot)
fprintf(Output_file, "grestore\n");
- fprintf(Output_file, "%g %g scale\n", scale, scale);
+ fprintf(Output_file, "%g %g set_scale\n", scale, scale);
fprintf(Output_file, "%d %d translate %d rotate\n",
offset.x, offset.y, rot);
assert(SP == 0);
if (job->common->show_boxes == NULL)
fprintf(job->output_file, "gsave\n%d %d %d %d boxprim clip newpath\n",
pbr.LL.x, pbr.LL.y, pbr.UR.x, pbr.UR.y);
- fprintf(job->output_file, "gsave %g %g scale %d rotate %g %g translate\n",
+ fprintf(job->output_file, "gsave %g %g set_scale %d rotate %g %g translate\n",
job->scale.x, job->scale.y,
job->rotation,
job->translation.x, job->translation.y);