summaryrefslogtreecommitdiff
path: root/print/ghostscript-gnu/files/patch-src:gdevpdff.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2008-09-05 19:41:48 +0000
committerHiroki Sato <hrs@FreeBSD.org>2008-09-05 19:41:48 +0000
commit6e0909e045a068d899c6347684796ba545f7202e (patch)
treee79848665db740cc8788eb18695e78e172bdef35 /print/ghostscript-gnu/files/patch-src:gdevpdff.c
parentUpgrade to snapshot 2008.09.05 (SVN revision 73). (diff)
* print/ghostscript-* and related ports have been renamed in the
following way: print/ghostscript-gnu -> print/ghostscript7 print/ghostscript-gnu-nox11 -> print/ghostscript7-nox11 print/ghostscript-gnu-commfont -> print/ghostscript7-commfont print/ghostscript-gpl -> print/ghostscript8 print/ghostscript-gpl-nox11 -> print/ghostscript8-nox11 japanese/ghostscript-gnu-jpnfont -> print/ghostscript7-jpnfont korean/ghostscript-gnu-korfont -> print/ghostscript7-korfont * USE_GHOSTSCRIPT now supports a version number which the port requires. The valid value is "7" or "8". If other value is specified, value of WITH_GHOSTSCRIPT_VER is used. * WITH_GHOSTSCRIPT_GNU has been removed in favor of WITH_GHOSTSCRIPT_VER. The valid value of WITH_GHOSTSCRIPT_VER is "7" or "8", and the default value is "8". Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=219946
Diffstat (limited to '')
-rw-r--r--print/ghostscript-gnu/files/patch-src:gdevpdff.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/print/ghostscript-gnu/files/patch-src:gdevpdff.c b/print/ghostscript-gnu/files/patch-src:gdevpdff.c
deleted file mode 100644
index 8a292bd4cdec..000000000000
--- a/print/ghostscript-gnu/files/patch-src:gdevpdff.c
+++ /dev/null
@@ -1,59 +0,0 @@
---- src/gdevpdff.c.org 2003-01-17 09:49:02.000000000 +0900
-+++ src/gdevpdff.c 2003-09-21 05:08:36.000000000 +0900
-@@ -276,6 +276,11 @@
- const byte *chars = font->font_name.chars;
- uint size = font->font_name.size;
-
-+ /* CIDFonts has null string in font_name, key_name is used */
-+ if (0 == size) {
-+ chars = font->key_name.chars;
-+ size = font->key_name.size;
-+ }
- /*
- * The behavior of Acrobat Distiller changed between 3.0 (PDF 1.2),
- * which will never embed the base 14 fonts, and 4.0 (PDF 1.3), which
-@@ -720,19 +725,22 @@
- same &= ~FONT_SAME_METRICS;
- break;
- case FONT_EMBED_NO:
-- /*
-- * Per the PDF 1.3 documentation, there are only 3 BaseEncoding
-- * values allowed for non-embedded fonts. Pick one here.
-- */
-- BaseEncoding =
-- ((const gs_font_base *)base_font)->nearest_encoding_index;
-- switch (BaseEncoding) {
-- default:
-- BaseEncoding = ENCODING_INDEX_WINANSI;
-- case ENCODING_INDEX_WINANSI:
-- case ENCODING_INDEX_MACROMAN:
-- case ENCODING_INDEX_MACEXPERT:
-- break;
-+ if (!(font->FontType == ft_CID_encrypted ||
-+ font->FontType == ft_CID_TrueType)) {
-+ /*
-+ * Per the PDF 1.3 documentation, there are only 3 BaseEncoding
-+ * values allowed for non-embedded fonts. Pick one here.
-+ */
-+ BaseEncoding =
-+ ((const gs_font_base *)base_font)->nearest_encoding_index;
-+ switch (BaseEncoding) {
-+ default:
-+ BaseEncoding = ENCODING_INDEX_WINANSI;
-+ case ENCODING_INDEX_WINANSI:
-+ case ENCODING_INDEX_MACROMAN:
-+ case ENCODING_INDEX_MACEXPERT:
-+ break;
-+ }
- }
- code = pdf_compute_font_descriptor(pdev, &fdesc, font, NULL);
- if (code < 0)
-@@ -888,6 +896,7 @@
- memcpy(ppf->widths_known, ftemp_widths_known,
- sizeof(ftemp_widths_known));
- }
-+ ppf->embed = embed;
- code = pdf_register_font(pdev, font, ppf);
-
- *pppf = ppf;
-