Debian Codegraph @

pdf/pdf_font0.h

raw
1 /* Copyright (C) 2019-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 /* Type 0 (CID) font handling routines */
17 /* Also CIDFontType0 and CIDFontType0 handling */
18
19 #ifndef PDF_TYPE0_FONT
20 #define PDF_TYPE0_FONT
21
22 #include "ghostpdf.h"
23 #include "pdf_types.h"
24 #include "pdf_font_types.h"
25
26 int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, pdf_font **ppdffont);
27 int pdfi_free_font_type0(pdf_obj *font);
28
29 int pdfi_read_cidtype2_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream_dict, pdf_dict *page_dict, byte *buf, int64_t buflen, int findex, pdf_font **ppfont);
30
31 int pdfi_free_font_cidtype2(pdf_obj *font);
32
33 int pdfi_read_cidtype0_font(pdf_context *ctx, pdf_dict *font_dict, byte *fbuf, int fbuflen, pdf_font **ppfont);
34
35 #endif