Debian Codegraph @

pdf/pdf_font9.c

raw
1 /* Copyright (C) 2020-2023 Artifex Software, Inc.
2 All Rights Reserved.
3
4 This software is provided AS-IS with no warranty, either express or
5 implied.
6
7 This software is distributed under license and may not be copied,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
10
11 Refer to licensing information at http://www.artifex.com or contact
12 Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
13 CA 94129, USA, for further information.
14 */
15
16 /* code for CIDFontType0/Type 9 font handling */
17 /* CIDFonts with PS outlines
18 This will have to cope with Type 1, Type 1C
19 and CFF from OTF.
20 */
21
22 #include "pdf_int.h"
23 #include "pdf_font.h"
24 #include "pdf_font0.h"
25 #include "pdf_fontps.h"
26 #include "pdf_font_types.h"
27 #include "pdf_stack.h"
28 #include "pdf_file.h"
29 #include "pdf_dict.h"
30 #include "pdf_array.h"
31
32 int pdfi_read_cidtype0_font(pdf_context *ctx, pdf_dict *font_dict, byte *fbuf, int fbuflen, pdf_font **ppdffont)
33 {
34 #if 0
35 int code;
36
37 code = pdfi_read_ps_font(ctx, font_dict, fbuf, fbuflen, ppfont);
38 if (code < 0) return code;
39 #else
40 gs_free_object(ctx->memory, fbuf, "pdfi_read_cidtype0_font");
41 #endif
42
43 return_error(gs_error_invalidfont);
44 }