diff options
author | Igor Melichev <igor.melichev@artifex.com> | 2003-03-21 19:14:24 +0000 |
---|---|---|
committer | Igor Melichev <igor.melichev@artifex.com> | 2003-03-21 19:14:24 +0000 |
commit | 3984cb3947a57ea88bd0fc0cc11e9a85a71bb238 (patch) | |
tree | 19a753e467e1002daeb5bba6fb55e71025fc35aa /gs/src/gdevpdtb.c | |
parent | 65ad7798663157e3353ee2d345124941509a572d (diff) |
pdfwrite : Fixing the bug 653140 "use NeverEmbed to restrict CIDFont embedding"
DETAILS :
The important change is setting pfont->font_name for CID fonts.
Before now it contained empty string. Other changes are minor
and only provide a data transfer.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3731 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gdevpdtb.c')
-rw-r--r-- | gs/src/gdevpdtb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/src/gdevpdtb.c b/gs/src/gdevpdtb.c index 73393efb5..5728ea585 100644 --- a/gs/src/gdevpdtb.c +++ b/gs/src/gdevpdtb.c @@ -28,6 +28,7 @@ #include "gdevpsf.h" #include "gdevpdfx.h" #include "gdevpdtb.h" +#include "gdevpdtf.h" /* * Adobe's Distiller Parameters documentation for Acrobat Distiller 5 @@ -161,7 +162,7 @@ pdf_end_fontfile(gx_device_pdf *pdev, pdf_data_writer_t *pdw) */ int pdf_base_font_alloc(gx_device_pdf *pdev, pdf_base_font_t **ppbfont, - gs_font_base *font, bool is_standard) + gs_font_base *font, bool is_standard, bool orig_name) { gs_memory_t *mem = pdev->pdf_memory; gs_font *copied; @@ -169,8 +170,7 @@ pdf_base_font_alloc(gx_device_pdf *pdev, pdf_base_font_t **ppbfont, pdf_base_font_t *pbfont = gs_alloc_struct(mem, pdf_base_font_t, &st_pdf_base_font, "pdf_base_font_alloc"); - const gs_font_name *pfname = - (font->font_name.size != 0 ? &font->font_name : &font->key_name); + const gs_font_name *pfname = pdf_choose_font_name((gs_font *)font, orig_name); gs_const_string font_name; char fnbuf[3 + sizeof(long) / 3 + 1]; /* .F#######\0 */ int code; |