1 /* Copyright (C) 2001-2019 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.,  1305 Grant Avenue - Suite 200, Novato,
13    CA 94945, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /*
18 Header for support functions to serialize fonts as PostScript code that can
19 then be passed to FreeType via the FAPI FreeType bridge.
20 Started by Graham Asher, 9th August 2002.
21 */
22 
23 #ifndef wrfont_INCLUDED
24 #define wrfont_INCLUDED
25 
26 #include "stdpre.h"
27 #include "std.h"
28 
29 typedef struct WRF_output_
30 {
31     unsigned char *m_pos;
32     long m_limit;
33     long m_count;
34     bool m_encrypt;
35     unsigned short m_key;
36 } WRF_output;
37 
38 void WRF_init(WRF_output * a_output, unsigned char *a_buffer,
39               long a_buffer_size);
40 void WRF_wbyte(const gs_memory_t *memory, WRF_output * a_output, unsigned char a_byte);
41 void WRF_wtext(const gs_memory_t *memory, WRF_output * a_output, const unsigned char *a_string,
42                long a_length);
43 void WRF_wstring(const gs_memory_t *memory, WRF_output * a_output, const char *a_string);
44 void WRF_wfloat(const gs_memory_t *memory, WRF_output * a_output, double a_float);
45 void WRF_wint(const gs_memory_t *memory, WRF_output * a_output, long a_int);
46 
47 #endif
48