diff options
-rw-r--r-- | gs/base/gdevpdtd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gs/base/gdevpdtd.c b/gs/base/gdevpdtd.c index 641ca88ab..80879fdad 100644 --- a/gs/base/gdevpdtd.c +++ b/gs/base/gdevpdtd.c | |||
@@ -721,14 +721,13 @@ pdf_convert_truetype_font_descriptor(gx_device_pdf *pdev, pdf_font_resource_t *p | |||
721 | { | 721 | { |
722 | pdf_font_descriptor_t *pfd = pdfont->FontDescriptor; | 722 | pdf_font_descriptor_t *pfd = pdfont->FontDescriptor; |
723 | pdf_base_font_t *pbfont = pfd->base_font; | 723 | pdf_base_font_t *pbfont = pfd->base_font; |
724 | int num_CIDs = pbfont->num_glyphs; | ||
725 | int length_CIDSet = (num_CIDs + 7) / 8; | ||
726 | int length_CIDToGIDMap = num_CIDs * sizeof(ushort); | ||
727 | gs_font *pfont = (gs_font *)pbfont->copied; | 724 | gs_font *pfont = (gs_font *)pbfont->copied; |
728 | gs_char ch; | 725 | gs_char ch; |
729 | /* Save the simple font descriptor data because CID font data overlap them. */ | 726 | /* Save the simple font descriptor data because CID font data overlap them. */ |
730 | int FirstChar = pdfont->u.simple.FirstChar, LastChar = pdfont->u.simple.LastChar; | 727 | int FirstChar = pdfont->u.simple.FirstChar, LastChar = pdfont->u.simple.LastChar; |
731 | pdf_encoding_element_t *Encoding = pdfont->u.simple.Encoding; | 728 | pdf_encoding_element_t *Encoding = pdfont->u.simple.Encoding; |
729 | int length_CIDSet = ((LastChar + 1)+ 7) / 8; | ||
730 | int length_CIDToGIDMap = (LastChar + 1) * sizeof(ushort); | ||
732 | 731 | ||
733 | pfd->FontType = ft_CID_TrueType; | 732 | pfd->FontType = ft_CID_TrueType; |
734 | pdfont->u.simple.Encoding = NULL; /* Drop due to overlapping against a garbager problem. */ | 733 | pdfont->u.simple.Encoding = NULL; /* Drop due to overlapping against a garbager problem. */ |