diff options
author | Yoshio MITA <mita@FreeBSD.org> | 2002-01-18 15:23:54 +0000 |
---|---|---|
committer | Yoshio MITA <mita@FreeBSD.org> | 2002-01-18 15:23:54 +0000 |
commit | 979ed31b76fdce3598a0ae8adb6ab670ae33a78e (patch) | |
tree | 65a1c24e4bb757a22544217f5ab47c8081b838e2 /print/ghostscript7-commfont/files/patch-src:zmedia2.c | |
parent | Update to popd-2.0: (diff) |
Add ghostscript-gnu-cjk 6.52,
gNU Postscript interpreter CJK fonts
adding port.
This is a GNU version of ghostscript with features below:
1. CJK internationalization ready.
2. Depends on print/ghostscript-gnu and replace only necessary files.
3. -DA4 default as is standard in CJK countries.
4. Includes many additional printer drivers sold in japan.
PR: ports/33116
Submitted by: Tomokatsu SAITO <saito@a2z.co.jp>
Notes
Notes:
svn path=/head/; revision=53300
Diffstat (limited to 'print/ghostscript7-commfont/files/patch-src:zmedia2.c')
-rw-r--r-- | print/ghostscript7-commfont/files/patch-src:zmedia2.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/print/ghostscript7-commfont/files/patch-src:zmedia2.c b/print/ghostscript7-commfont/files/patch-src:zmedia2.c new file mode 100644 index 000000000000..6e19c2ddfd8e --- /dev/null +++ b/print/ghostscript7-commfont/files/patch-src:zmedia2.c @@ -0,0 +1,25 @@ +--- src/zmedia2.c.orig Tue Jun 5 15:39:08 2001 ++++ src/zmedia2.c Wed Jun 20 04:18:27 2001 +@@ -430,11 +430,17 @@ + + rx = ry, ry = temp; + } +- /* Adjust the medium size if flexible. */ +- if (medium->p.x < MIN_MEDIA_SIZE && mx > rx) +- mx = rx; +- if (medium->p.y < MIN_MEDIA_SIZE && my > ry) +- my = ry; ++ /* If 'medium' is flexible, adjust 'mx' and 'my' towards 'rx' and 'ry', ++ respectively. Note that 'mx' and 'my' have just acquired the largest ++ permissible value, medium->q. */ ++ if (medium->p.x < mx) /* non-empty width range */ ++ if (rx < medium->p.x) mx = medium->p.x; /* minimum */ ++ else if (mx > rx) mx = rx; /* fits */ ++ /* else use medium->q.x, i.e., the maximum */ ++ if (medium->p.y < my) /* non-empty height range */ ++ if (ry < medium->p.y) my = medium->p.y; /* minimum */ ++ else if (my > ry) my = ry; /* fits */ ++ /* else use medium->q.y, i.e., the maximum */ + + /* Translate to align the centers. */ + gs_make_translation(mx / 2, my / 2, pmat); |