1 /* Copyright (C) 1994-2002 artofcode LLC. 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: gdevmacttf.h,v 1.6 2003/01/06 23:37:58 giles Exp $ */ 18 /* Datatypes for simpler access to data structures in TrueType fonts */ 19 20 #ifndef gdevmacttf_INCLUDED 21 # define gdevmacttf_INCLUDED 22 23 24 /* Font Directory Component */ 25 26 typedef struct { 27 UInt32 tagName; 28 UInt32 checkSum; 29 UInt32 offset; 30 UInt32 length; 31 } TTFontDirComponent; 32 33 34 35 /* Font Directory */ 36 37 typedef struct { 38 UInt32 version; 39 UInt16 numTables; 40 UInt16 searchRange; 41 UInt16 entrySelector; 42 UInt16 rangeShift; 43 TTFontDirComponent components[1]; /* an array of numTables components */ 44 } TTFontDir; 45 46 47 48 /* Tag definitions */ 49 #define TTF_FONT_NAMING_TABLE 'name' 50 51 52 53 /* Font Naming Table */ 54 55 typedef struct { 56 UInt16 formatSelector; 57 UInt16 numNames; 58 UInt16 stringAreaOffset; 59 UInt16 platformID; 60 UInt16 platformSpecificID; 61 UInt16 languageID; 62 UInt16 nameID; 63 UInt16 length; 64 UInt16 offset; 65 } TTFontNamingTable; 66 67 #endif /* gdevmacttf_INCLUDED */ 68