summaryrefslogtreecommitdiff
path: root/psi/gsos2.def
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2020-06-30 13:58:11 +0100
committerChris Liddell <chris.liddell@artifex.com>2020-06-30 14:06:44 +0100
commita1cf59357b6945fdac87afa76e2afd56bb3c1206 (patch)
tree106baa9da465df2ca1a632fa24200bdd4db9bf3b /psi/gsos2.def
parent71d0b343a3f20d298b9abbe6261bcb01ecb48dcb (diff)
downloadghostpdl-a1cf59357b6945fdac87afa76e2afd56bb3c1206.tar.gz
Slight tweak to the FAPI API
The previous Font API update had a slight mistake: for non-CID fonts, we'd pass GS_NO_GLYPH in place of the actually CID/GID into the "fapi_set_cache" call back. That worked fine because, for Postscript (and currrent PDF) non-CID fonts use the glyph name, not a character code, and the other interpreters do not need a character for that callback. We'll now pass the glyph index for non-CID fonts, and the glyph index + GS_MIN_CID_GLYPH (as is conventional for gs) - and that allows the fapi_set_cache call back to differentiate between CID and non-CID fonts. For the new PDF interpreter (pdfi) we actually do need the character code, to correctly handle Truetype fonts. So fixing the graphics lib and associated code on master, so the pdfi branch can also work.
Diffstat (limited to 'psi/gsos2.def')
0 files changed, 0 insertions, 0 deletions