Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | /* */ |
| 3 | /* pfrobjs.h */ |
| 4 | /* */ |
| 5 | /* FreeType PFR object methods (specification). */ |
| 6 | /* */ |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 7 | /* Copyright 2002, 2003, 2004 by */ |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +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 | |
| 19 | #ifndef __PFROBJS_H__ |
| 20 | #define __PFROBJS_H__ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 21 | |
| 22 | #include "pfrtypes.h" |
| 23 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 24 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 25 | FT_BEGIN_HEADER |
| 26 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 27 | typedef struct PFR_FaceRec_* PFR_Face; |
David Turner | 3249c62 | 2002-10-31 08:30:19 +0000 | [diff] [blame] | 28 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 29 | typedef struct PFR_SizeRec_* PFR_Size; |
David Turner | 3249c62 | 2002-10-31 08:30:19 +0000 | [diff] [blame] | 30 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 31 | typedef struct PFR_SlotRec_* PFR_Slot; |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 32 | |
| 33 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 34 | typedef struct PFR_FaceRec_ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 35 | { |
| 36 | FT_FaceRec root; |
| 37 | PFR_HeaderRec header; |
| 38 | PFR_LogFontRec log_font; |
| 39 | PFR_PhyFontRec phy_font; |
| 40 | |
| 41 | } PFR_FaceRec; |
| 42 | |
| 43 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 44 | typedef struct PFR_SizeRec_ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 45 | { |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 46 | FT_SizeRec root; |
David Turner | 3249c62 | 2002-10-31 08:30:19 +0000 | [diff] [blame] | 47 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 48 | } PFR_SizeRec; |
| 49 | |
| 50 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 51 | typedef struct PFR_SlotRec_ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 52 | { |
| 53 | FT_GlyphSlotRec root; |
| 54 | PFR_GlyphRec glyph; |
David Turner | 3249c62 | 2002-10-31 08:30:19 +0000 | [diff] [blame] | 55 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 56 | } PFR_SlotRec; |
| 57 | |
| 58 | |
| 59 | FT_LOCAL( FT_Error ) |
Werner Lemberg | 68e9f92 | 2002-09-27 11:09:23 +0000 | [diff] [blame] | 60 | pfr_face_init( FT_Stream stream, |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 61 | FT_Face face, /* PFR_Face */ |
Werner Lemberg | 68e9f92 | 2002-09-27 11:09:23 +0000 | [diff] [blame] | 62 | FT_Int face_index, |
| 63 | FT_Int num_params, |
| 64 | FT_Parameter* params ); |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 65 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 66 | FT_LOCAL( void ) |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 67 | pfr_face_done( FT_Face face ); /* PFR_Face */ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 68 | |
| 69 | |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 70 | FT_LOCAL( FT_Error ) |
| 71 | pfr_face_get_kerning( FT_Face face, /* PFR_Face */ |
Werner Lemberg | 319c00d | 2003-04-23 19:48:24 +0000 | [diff] [blame] | 72 | FT_UInt glyph1, |
| 73 | FT_UInt glyph2, |
| 74 | FT_Vector* kerning ); |
David Turner | 38f8e89 | 2002-06-21 07:33:23 +0000 | [diff] [blame] | 75 | |
| 76 | |
| 77 | FT_LOCAL( FT_Error ) |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 78 | pfr_slot_init( FT_GlyphSlot slot ); /* PFR_Slot */ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 79 | |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 80 | FT_LOCAL( void ) |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 81 | pfr_slot_done( FT_GlyphSlot slot ); /* PFR_Slot */ |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 82 | |
| 83 | |
| 84 | FT_LOCAL( FT_Error ) |
Werner Lemberg | b78c554 | 2004-05-08 07:00:23 +0000 | [diff] [blame] | 85 | pfr_slot_load( FT_GlyphSlot slot, /* PFR_Slot */ |
| 86 | FT_Size size, /* PFR_Size */ |
| 87 | FT_UInt gindex, |
| 88 | FT_Int32 load_flags ); |
David Turner | 609e28c | 2002-04-19 15:13:47 +0000 | [diff] [blame] | 89 | |
| 90 | |
| 91 | FT_END_HEADER |
| 92 | |
Werner Lemberg | fadb6be | 2002-04-20 05:38:33 +0000 | [diff] [blame] | 93 | #endif /* __PFROBJS_H__ */ |
Werner Lemberg | eacb930 | 2002-10-07 10:12:43 +0000 | [diff] [blame] | 94 | |
| 95 | |
| 96 | /* END */ |