ref: 07c8774ca26254c76c5e2d012ebadcc20e2003f5
parent: 7013373eb7c3a236110f9832f1d6111bf7810420
author: Leonard Rosenthol <[email protected]>
date: Thu Dec 6 12:52:40 EST 2001
Exported new routine for getting a path from a name
--- a/include/freetype/ftmac.h
+++ b/include/freetype/ftmac.h
@@ -92,6 +92,31 @@
FT_Face *aface );
+ /*************************************************************************/
+ /* */
+ /* <Function> */
+ /* FT_GetFile_From_Mac_Name */
+ /* */
+ /* <Description> */
+ /* Returns an FSSpec for the disk file containing the named font. */
+ /* */
+ /* <Input> */
+ /* fontName :: Mac OS name of the font (eg. Times New Roman Bold) */
+ /* */
+ /* <Output> */
+ /* pathSpec :: FSSpec to the file. For passing to FT_New_Face */
+ /* */
+ /* face_index :: index of the face For passing to FT_New_Face */
+ /* */
+ /* <Return> */
+ /* FreeType error code. 0 means success. */
+ /* */
+ /* */
+ FT_EXPORT_DEF( FT_Error )
+ FT_GetFile_From_Mac_Name( char* fontName,
+ FSSpec* pathSpec,
+ FT_Long* face_index );
+
/* */