page size and use centering; still not sure that pageOffset is computed
correctly, but it is only used now in hpglgen.
pageSize.x = gvc->pageSize.x - 2 * margin.x;
pageSize.y = gvc->pageSize.y - 2 * margin.y;
- /* we don't want graph page to exceed its bounding box */
- pageSize.x = MIN(pageSize.x, imageSize.x);
- pageSize.y = MIN(pageSize.y, imageSize.y);
-
if (pageSize.x < EPSILON)
job->pagesArraySize.x = 1;
else {
pageSize.y = job->render.features->default_pagesize.y - 2*margin.y;
if (pageSize.y < 0.)
pageSize.y = 0.;
+ if (job->rotation)
+ pageSize = exch_xyf(pageSize);
}
else
pageSize.x = pageSize.y = 0.;