parseAFM.hxx (cdf0e10c) | parseAFM.hxx (86e1cf34) |
---|---|
1/* 2 * (C) 1988, 1989 by Adobe Systems Incorporated. All rights reserved. 3 * 4 * This file may be freely copied and redistributed as long as: 5 * 1) This entire notice continues to be included in the file, 6 * 2) If the file has been modified in any way, a notice of such 7 * modification is conspicuously indicated. 8 * --- 22 unchanged lines hidden (view full) --- 31 * - added ability to parse slightly broken files 32 * - added charwidth member to GlobalFontInfo 33 * 04/26/2001 pl - added OpenOffice header 34 * 10/19/2005 pl - changed parseFile to accept a file name instead of a stream 35 */ 36 37/* ParseAFM.h 38 * | 1/* 2 * (C) 1988, 1989 by Adobe Systems Incorporated. All rights reserved. 3 * 4 * This file may be freely copied and redistributed as long as: 5 * 1) This entire notice continues to be included in the file, 6 * 2) If the file has been modified in any way, a notice of such 7 * modification is conspicuously indicated. 8 * --- 22 unchanged lines hidden (view full) --- 31 * - added ability to parse slightly broken files 32 * - added charwidth member to GlobalFontInfo 33 * 04/26/2001 pl - added OpenOffice header 34 * 10/19/2005 pl - changed parseFile to accept a file name instead of a stream 35 */ 36 37/* ParseAFM.h 38 * |
39 * This header file is used in conjuction with the parseAFM.c file. | 39 * This header file is used in conjunction with the parseAFM.c file. |
40 * Together these files provide the functionality to parse Adobe Font 41 * Metrics files and store the information in predefined data structures. 42 * It is intended to work with an application program that needs font metric 43 * information. The program can be used as is by making a procedure call to 44 * parse an AFM file and have the data stored, or an application developer 45 * may wish to customize the code. 46 * 47 * This header file defines the data structures used as well as the key --- 263 unchanged lines hidden (view full) --- 311 312 313/************************* PROCEDURES ****************************/ 314 315/* Call this procedure to do the grunt work of parsing an AFM file. 316 * 317 * "fp" should be a valid file pointer to an AFM file. 318 * | 40 * Together these files provide the functionality to parse Adobe Font 41 * Metrics files and store the information in predefined data structures. 42 * It is intended to work with an application program that needs font metric 43 * information. The program can be used as is by making a procedure call to 44 * parse an AFM file and have the data stored, or an application developer 45 * may wish to customize the code. 46 * 47 * This header file defines the data structures used as well as the key --- 263 unchanged lines hidden (view full) --- 311 312 313/************************* PROCEDURES ****************************/ 314 315/* Call this procedure to do the grunt work of parsing an AFM file. 316 * 317 * "fp" should be a valid file pointer to an AFM file. 318 * |
319 * "fi" is a pointer to a pointer to a FontInfo record sturcture | 319 * "fi" is a pointer to a pointer to a FontInfo record structure |
320 * (defined above). Storage for the FontInfo structure will be 321 * allocated in parseFile and the structure will be filled in 322 * with the requested data from the AFM File. 323 * 324 * "flags" is a mask with bits set representing what data should 325 * be saved. Defined above are valid flags that can be used to set 326 * the mask, as well as a few commonly used masks. 327 * 328 * The possible return codes from parseFile are defined above. 329 */ 330 331int parseFile( const char* pFilename, FontInfo **fi, FLAGS flags ); 332void freeFontInfo(FontInfo *fi); 333 334} // namespace | 320 * (defined above). Storage for the FontInfo structure will be 321 * allocated in parseFile and the structure will be filled in 322 * with the requested data from the AFM File. 323 * 324 * "flags" is a mask with bits set representing what data should 325 * be saved. Defined above are valid flags that can be used to set 326 * the mask, as well as a few commonly used masks. 327 * 328 * The possible return codes from parseFile are defined above. 329 */ 330 331int parseFile( const char* pFilename, FontInfo **fi, FLAGS flags ); 332void freeFontInfo(FontInfo *fi); 333 334} // namespace |