1 /***************************************************************************/ 2 /* */ 3 /* pstypes.h */ 4 /* */ 5 /* Adobe's code for defining data types (specification only). */ 6 /* */ 7 /* Copyright 2011-2013 Adobe Systems Incorporated. */ 8 /* */ 9 /* This software, and all works of authorship, whether in source or */ 10 /* object code form as indicated by the copyright notice(s) included */ 11 /* herein (collectively, the "Work") is made available, and may only be */ 12 /* used, modified, and distributed under the FreeType Project License, */ 13 /* LICENSE.TXT. Additionally, subject to the terms and conditions of the */ 14 /* FreeType Project License, each contributor to the Work hereby grants */ 15 /* to any individual or legal entity exercising permissions granted by */ 16 /* the FreeType Project License and this section (hereafter, "You" or */ 17 /* "Your") a perpetual, worldwide, non-exclusive, no-charge, */ 18 /* royalty-free, irrevocable (except as stated in this section) patent */ 19 /* license to make, have made, use, offer to sell, sell, import, and */ 20 /* otherwise transfer the Work, where such license applies only to those */ 21 /* patent claims licensable by such contributor that are necessarily */ 22 /* infringed by their contribution(s) alone or by combination of their */ 23 /* contribution(s) with the Work to which such contribution(s) was */ 24 /* submitted. If You institute patent litigation against any entity */ 25 /* (including a cross-claim or counterclaim in a lawsuit) alleging that */ 26 /* the Work or a contribution incorporated within the Work constitutes */ 27 /* direct or contributory patent infringement, then any patent licenses */ 28 /* granted to You under this License for that Work shall terminate as of */ 29 /* the date such litigation is filed. */ 30 /* */ 31 /* By using, modifying, or distributing the Work you indicate that you */ 32 /* have read and understood the terms and conditions of the */ 33 /* FreeType Project License as well as those provided in this section, */ 34 /* and you accept them fully. */ 35 /* */ 36 /***************************************************************************/ 37 38 39 #ifndef PSTYPES_H_ 40 #define PSTYPES_H_ 41 42 #include <ft2build.h> 43 #include FT_FREETYPE_H 44 45 46 FT_BEGIN_HEADER 47 48 49 /* 50 * The data models that we expect to support are as follows: 51 * 52 * name char short int long long-long pointer example 53 * ----------------------------------------------------- 54 * ILP32 8 16 32 32 64* 32 32-bit MacOS, x86 55 * LLP64 8 16 32 32 64 64 x64 56 * LP64 8 16 32 64 64 64 64-bit MacOS 57 * 58 * *) type may be supported by emulation on a 32-bit architecture 59 * 60 */ 61 62 63 /* integers at least 32 bits wide */ 64 #define CF2_UInt FT_UFast 65 #define CF2_Int FT_Fast 66 67 68 /* fixed-float numbers */ 69 typedef FT_Int32 CF2_F16Dot16; 70 71 72 FT_END_HEADER 73 74 75 #endif /* PSTYPES_H_ */ 76 77 78 /* END */ 79