David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* cffload.h */ |
| 4 | /* */ |
| 5 | /* OpenType & CFF data/program tables loader (specification). */ |
| 6 | /* */ |
Werner Lemberg | d393ca3 | 2003-09-30 07:00:42 +0000 | [diff] [blame] | 7 | /* Copyright 1996-2001, 2002, 2003 by */ |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 8 | /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
| 9 | /* */ |
| 10 | /* This file is part of the FreeType project, and may only be used, */ |
| 11 | /* modified, and distributed under the terms of the FreeType project */ |
| 12 | /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 13 | /* this file you indicate that you have read the license and */ |
| 14 | /* understand and accept it fully. */ |
| 15 | /* */ |
| 16 | /***************************************************************************/ |
| 17 | |
| 18 | |
Werner Lemberg | 90d9964 | 2000-12-09 00:45:38 +0000 | [diff] [blame] | 19 | #ifndef __CFFLOAD_H__ |
| 20 | #define __CFFLOAD_H__ |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 21 | |
Werner Lemberg | cc069be | 2000-12-08 16:17:16 +0000 | [diff] [blame] | 22 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 23 | #include <ft2build.h> |
David Turner | 7760595 | 2003-10-29 21:43:52 +0000 | [diff] [blame] | 24 | #include "cfftypes.h" |
| 25 | #include FT_SERVICE_POSTSCRIPT_CMAPS_H |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 26 | |
Werner Lemberg | cc069be | 2000-12-08 16:17:16 +0000 | [diff] [blame] | 27 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 28 | FT_BEGIN_HEADER |
| 29 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 30 | FT_LOCAL( FT_UShort ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 31 | cff_get_standard_encoding( FT_UInt charcode ); |
Tom Kacvinsky | 236f82d | 2001-08-08 10:45:08 +0000 | [diff] [blame] | 32 | |
Werner Lemberg | 1429db6 | 2001-04-02 23:54:01 +0000 | [diff] [blame] | 33 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 34 | FT_LOCAL( FT_String* ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 35 | cff_index_get_name( CFF_Index idx, |
| 36 | FT_UInt element ); |
Werner Lemberg | cc069be | 2000-12-08 16:17:16 +0000 | [diff] [blame] | 37 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 38 | FT_LOCAL( FT_String* ) |
David Turner | b72d8a8 | 2003-09-29 20:33:37 +0000 | [diff] [blame] | 39 | cff_index_get_sid_string( CFF_Index idx, |
| 40 | FT_UInt sid, |
David Turner | 7760595 | 2003-10-29 21:43:52 +0000 | [diff] [blame] | 41 | FT_Service_PsCMaps psnames ); |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 42 | |
| 43 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 44 | FT_LOCAL( FT_Error ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 45 | cff_index_access_element( CFF_Index idx, |
| 46 | FT_UInt element, |
| 47 | FT_Byte** pbytes, |
| 48 | FT_ULong* pbyte_len ); |
Werner Lemberg | cc069be | 2000-12-08 16:17:16 +0000 | [diff] [blame] | 49 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 50 | FT_LOCAL( void ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 51 | cff_index_forget_element( CFF_Index idx, |
| 52 | FT_Byte** pbytes ); |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 53 | |
| 54 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 55 | FT_LOCAL( FT_Error ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 56 | cff_font_load( FT_Stream stream, |
Werner Lemberg | 93616ec | 2001-06-27 19:46:12 +0000 | [diff] [blame] | 57 | FT_Int face_index, |
Graham Asher | 9eefed1 | 2002-08-23 10:08:38 +0000 | [diff] [blame] | 58 | CFF_Font font ); |
Werner Lemberg | cc069be | 2000-12-08 16:17:16 +0000 | [diff] [blame] | 59 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 60 | FT_LOCAL( void ) |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 61 | cff_font_done( CFF_Font font ); |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 62 | |
| 63 | |
David Turner | bc82f1b | 2002-03-01 02:26:22 +0000 | [diff] [blame] | 64 | FT_LOCAL( FT_Byte ) |
Werner Lemberg | 80cfbd7 | 2003-12-26 07:26:08 +0000 | [diff] [blame] | 65 | cff_fd_select_get( CFF_FDSelect fdselect, |
David Turner | b9b2cac | 2002-07-10 16:52:06 +0000 | [diff] [blame] | 66 | FT_UInt glyph_index ); |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 67 | |
| 68 | |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 69 | FT_END_HEADER |
| 70 | |
Werner Lemberg | 90d9964 | 2000-12-09 00:45:38 +0000 | [diff] [blame] | 71 | #endif /* __CFFLOAD_H__ */ |
David Turner | 19ed8af | 2000-12-08 02:42:29 +0000 | [diff] [blame] | 72 | |
| 73 | |
| 74 | /* END */ |