1 /* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: wrfont.h,v 1.2 2002/12/04 07:45:47 igor Exp $ */ 18 /* 19 Header for support functions to serialize fonts as PostScript code that can 20 then be passed to FreeType via the FAPI FreeType bridge. 21 Started by Graham Asher, 9th August 2002. 22 */ 23 24 #ifndef wrfont_INCLUDED 25 #define wrfont_INCLUDED 26 27 #include "stdpre.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,long a_buffer_size); 39 void WRF_wbyte(WRF_output* a_output,unsigned char a_byte); 40 void WRF_wtext(WRF_output* a_output,const unsigned char* a_string,long a_length); 41 void WRF_wstring(WRF_output* a_output,const char* a_string); 42 void WRF_wfloat(WRF_output* a_output,double a_float); 43 void WRF_wint(WRF_output* a_output,long a_int); 44 45 #endif 46