<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
color: #000000;
background: #FFFFFF; }
p { text-align: justify; }
h1 { text-align: center; }
li { text-align: justify; }
td { padding: 0 0.5em 0 0.5em; }
td.left { padding: 0 0.5em 0 0.5em;
text-align: left; }
a:link { color: #0000EF; }
a:visited { color: #51188E; }
a:hover { color: #FF0000; }
span.keyword { font-family: monospace;
text-align: left;
white-space: pre;
color: darkblue; }
pre.colored { color: blue; }
ul.empty { list-style-type: none; }
Mac Specific Interface
<
table align=center
cellspacing=5 cellpadding=0 border=0>
<
tr><
td><
/td><
td><
a href="#FT_New_Face_From_FOND">FT_New_Face_From_FOND<
/a><
/td><
td><
/td><
td><
a href="#FT_GetFilePath_From_Mac_ATS_Name">FT_GetFilePath_From_Mac_ATS_Name<
/a><
/td><
/tr>
<
tr><
td><
/td><
td><
a href="#FT_GetFile_From_Mac_Name">FT_GetFile_From_Mac_Name<
/a><
/td><
td><
/td><
td><
a href="#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a><
/td><
/tr>
<
tr><
td><
/td><
td><
a href="#FT_GetFile_From_Mac_ATS_Name">FT_GetFile_From_Mac_ATS_Name<
/a><
/td><
td><
/td><
td><
a href="#FT_New_Face_From_FSRef">FT_New_Face_From_FSRef<
/a><
/td><
/tr>
<
p>The following definitions are only available if FreeType is compiled on a Macintosh.<
/p>
<
h4><
a name="FT_New_Face_From_FOND">FT_New_Face_From_FOND<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_New_Face_From_FOND<
/b>
( <
a href="ft2-base_interface.html#FT_Library">FT_Library<
/a> library,
Handle fond,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a> face_index,
<
a href="ft2-base_interface.html#FT_Face">FT_Face<
/a> *aface
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Create a new
face object from a FOND resource.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to the library resource.<
/p>
<
table cellpadding=3 border=0>
<
p>Only supported
for the -
1 ‘sanity check’ special case.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to a new
face object.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
p>This function can be used to create <
a href="ft2-base_interface.html#FT_Face">FT_Face<
/a> objects from fonts that are installed in the system as follows.<
/p>
fond = GetResource( 'FOND', fontName );
error = FT_New_Face_From_FOND( library, fond, 0, &face );
<
h4><
a name="FT_GetFile_From_Mac_Name">FT_GetFile_From_Mac_Name<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_GetFile_From_Mac_Name<
/b>
( <
span class="keyword">const<
/span> <
span class="keyword">char<
/span>* fontName,
FSSpec* pathSpec,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a>* face_index
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Return an FSSpec
for the disk file containing the named font.<
/p>
<
table cellpadding=3 border=0>
<
p>Mac OS
name of the font
(e.g., Times New Roman Bold
).<
/p>
<
table cellpadding=3 border=0>
<
p>FSSpec to the file.
For passing to <
a href="ft2-mac_specific.html#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a>.<
/p>
<
p>Index of the
face.
For passing to <
a href="ft2-mac_specific.html#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a>.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
h4><
a name="FT_GetFile_From_Mac_ATS_Name">FT_GetFile_From_Mac_ATS_Name<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_GetFile_From_Mac_ATS_Name<
/b>
( <
span class="keyword">const<
/span> <
span class="keyword">char<
/span>* fontName,
FSSpec* pathSpec,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a>* face_index
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Return an FSSpec
for the disk file containing the named font.<
/p>
<
table cellpadding=3 border=0>
<
p>Mac OS
name of the font in ATS framework.<
/p>
<
table cellpadding=3 border=0>
<
p>FSSpec to the file.
For passing to <
a href="ft2-mac_specific.html#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a>.<
/p>
<
p>Index of the
face.
For passing to <
a href="ft2-mac_specific.html#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a>.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
h4><
a name="FT_GetFilePath_From_Mac_ATS_Name">FT_GetFilePath_From_Mac_ATS_Name<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_GetFilePath_From_Mac_ATS_Name<
/b>
( <
span class="keyword">const<
/span> <
span class="keyword">char<
/span>* fontName,
UInt8* path,
UInt32 maxPathSize,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a>* face_index
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Return a pathname of the disk file and
face index
for given font
name which is handled by ATS framework.<
/p>
<
table cellpadding=3 border=0>
<
p>Mac OS
name of the font in ATS framework.<
/p>
<
table cellpadding=3 border=0>
<
p>Buffer to store pathname of the file.
For passing to <
a href="ft2-base_interface.html#FT_New_Face">FT_New_Face<
/a>. The client must allocate this buffer before calling this function.<
/p>
<
p>Lengths of the buffer ‘path’ that client allocated.<
/p>
<
p>Index of the
face.
For passing to <
a href="ft2-base_interface.html#FT_New_Face">FT_New_Face<
/a>.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
h4><
a name="FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_New_Face_From_FSSpec<
/b>
( <
a href="ft2-base_interface.html#FT_Library">FT_Library<
/a> library,
<
span class="keyword">const<
/span> FSSpec *spec,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a> face_index,
<
a href="ft2-base_interface.html#FT_Face">FT_Face<
/a> *aface
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Create a new
face object from a given resource and typeface index using an FSSpec to the font file.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to the library resource.<
/p>
<
table cellpadding=3 border=0>
<
p>FSSpec to the font file.<
/p>
<
p>The index of the
face within the resource. The first
face has index
0.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to a new
face object.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
p><
a href="ft2-mac_specific.html#FT_New_Face_From_FSSpec">FT_New_Face_From_FSSpec<
/a> is identical to <
a href="ft2-base_interface.html#FT_New_Face">FT_New_Face<
/a> except it accepts an FSSpec instead of a path.<
/p>
<
h4><
a name="FT_New_Face_From_FSRef">FT_New_Face_From_FSRef<
/a><
/h4>
Defined in FT_MAC_H (freetype/ftmac.h).
<
table align=center
width="87%"><
tr bgcolor="#D6E8FF"><
td><
pre>
FT_EXPORT
( <
a href="ft2-basic_types.html#FT_Error">FT_Error<
/a>
)
<
b>FT_New_Face_From_FSRef<
/b>
( <
a href="ft2-base_interface.html#FT_Library">FT_Library<
/a> library,
<
span class="keyword">const<
/span> FSRef *ref,
<
a href="ft2-basic_types.html#FT_Long">FT_Long<
/a> face_index,
<
a href="ft2-base_interface.html#FT_Face">FT_Face<
/a> *aface
)
FT_DEPRECATED_ATTRIBUTE;
<
p>Create a new
face object from a given resource and typeface index using an FSRef to the font file.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to the library resource.<
/p>
<
table cellpadding=3 border=0>
<
p>FSRef to the font file.<
/p>
<
p>The index of the
face within the resource. The first
face has index
0.<
/p>
<
table cellpadding=3 border=0>
<
p>A handle to a new
face object.<
/p>
<
p>FreeType error
code.
0 means success.<
/p>
<
p><
a href="ft2-mac_specific.html#FT_New_Face_From_FSRef">FT_New_Face_From_FSRef<
/a> is identical to <
a href="ft2-base_interface.html#FT_New_Face">FT_New_Face<
/a> except it accepts an FSRef instead of a path.<
/p>