diff options
author | Rene Ladan <rene@FreeBSD.org> | 2023-06-30 23:38:40 +0200 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2023-06-30 23:54:46 +0200 |
commit | 81c4ecd37c4a21200f1989d043d23354f28ff7d7 (patch) | |
tree | f04b09997f08db373cfa1d020b1c9359bf48c2bf /print/ghostscript7-base/files/patch-src_gdevpdfs.c | |
parent | sysutils/backdown: Add new port (diff) |
cleanup: Remove expired GhostScript 7 ports:
2023-06-30 print/ghostscript7-base: Obsolete and unsupported upstream, consider using a more recent version
2023-06-30 print/ghostscript7-commfont: Obsolete and unsupported upstream
2023-06-30 print/ghostscript7-korfont: Obsolete and unsupported upstream
2023-06-30 print/ghostscript7-x11: Obsolete and unsupported upstream
2023-06-30 print/ghostscript7-jpnfont: Obsolete and unsupported upstream
Diffstat (limited to 'print/ghostscript7-base/files/patch-src_gdevpdfs.c')
-rw-r--r-- | print/ghostscript7-base/files/patch-src_gdevpdfs.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/print/ghostscript7-base/files/patch-src_gdevpdfs.c b/print/ghostscript7-base/files/patch-src_gdevpdfs.c deleted file mode 100644 index 0378f15c88ab..000000000000 --- a/print/ghostscript7-base/files/patch-src_gdevpdfs.c +++ /dev/null @@ -1,41 +0,0 @@ ---- src/gdevpdfs.c.org 2003-09-20 00:11:16.000000000 +0900 -+++ src/gdevpdfs.c 2003-09-25 17:44:10.000000000 +0900 -@@ -481,15 +481,21 @@ - - if (cid < pfd->chars_count) { - int index = cid >> 3, mask = 0x80 >> (cid & 7); -+ int gid; -+ -+ if (!(pfd->chars_used.data[index] & mask) || -+ !(psubf->widths_known[index] & mask)) { - -- if (!(pfd->chars_used.data[index] & mask)) { -- pfd->chars_used.data[index] |= mask; - if (psubf->CIDToGIDMap) { - gs_font_cid2 *const subfont2 = - (gs_font_cid2 *)subfont; -- int gid = -- subfont2->cidata.CIDMap_proc(subfont2, glyph); - -+ gid = subfont2->cidata.CIDMap_proc(subfont2, glyph); -+ } -+ } -+ if (!(pfd->chars_used.data[index] & mask)) { -+ pfd->chars_used.data[index] |= mask; -+ if (psubf->CIDToGIDMap) { - if (gid >= 0) { - psubf->CIDToGIDMap[cid] = gid; - mark_glyphs_used(subfont, gid + gs_min_cid_glyph, -@@ -500,7 +506,11 @@ - if (!(psubf->widths_known[index] & mask)) { - int width; - -- code = pdf_glyph_width(psubf, glyph, subfont, &width); -+ if (psubf->CIDToGIDMap) -+ code = pdf_glyph_width(psubf, gid + gs_min_cid_glyph, -+ subfont, &width); -+ else -+ code = pdf_glyph_width(psubf, glyph, subfont, &width); - if (code == 0) { - psubf->Widths[cid] = width; - psubf->widths_known[index] |= mask; |