Freetype Library Mac Os X
FreeType » Docs » Core API » Mac Specific Interface
Synopsis¶
If you're on an earlier version of Mac OS X you can download the latest version of the tools from Apple's Developer Connection site. Warning, the file is about 900 MB and will take a while to download. I have freetype already installed via homebrew too. Solution 4: This is caused by a change in the headers of freetype = 2.1.5. PIL is not using the correct documented way to include the freetype headers, which causes the build to fail now that freetype finally removed the long-deprecated way of including the headers. Support Communities / Servers and Enterprise Software / Mac OS X Server v10.6 Snow Leopard Looks like no one’s replied in a while. To start the conversation again, simply ask a new question. Issue or Feature After upgrading to Mac OS X High Sierra, I experienced difficulties in getting our web server that uses canvas to work. Specifically, when launching the server it crashes with the error: canvas.node, 1): Symbol not found. Mac OS X 10.7 with MacPorts installed, using CMake-based installation from the latest git 5-34-patches. //ADVANCED property for variable: FREETYPELIBRARY. Apple’s new operating system, Mac OS X 10.7 Lion ships with a newer version of PHP (5.3.6), which has been compiled with GD, freetype, tidy (libtidy), and lots of other goodness. Additionally, Apple has chosen to compile PHP with Suhosin Patch 0.9.10, which purports to substantially harden PHP.
The following definitions are only available if FreeType is compiled on a Macintosh.
FT_New_Face_From_FOND¶
Defined in FT_MAC_H (freetype/ftmac.h).
Create a new face object from a FOND resource.
inout
library | A handle to the library resource. |
input
fond | A FOND resource. |
face_index | Only supported for the -1 ‘sanity check’ special case. |
output
aface | A handle to a new face object. |
return
FreeType error code. 0 means success.
example
This function can be used to create FT_Face
objects from fonts that are installed in the system as follows.
FT_GetFile_From_Mac_Name¶
Defined in FT_MAC_H (freetype/ftmac.h).
Return an FSSpec for the disk file containing the named font.
input
fontName | Mac OS name of the font (e.g., Times New Roman Bold). |
output
pathSpec | FSSpec to the file. For passing to |
face_index | Index of the face. For passing to |
return
FreeType error code. 0 means success.
FT_GetFile_From_Mac_ATS_Name¶
Defined in FT_MAC_H (freetype/ftmac.h).
Return an FSSpec for the disk file containing the named font.
input
fontName | Mac OS name of the font in ATS framework. |
output
pathSpec | FSSpec to the file. For passing to |
face_index | Index of the face. For passing to |
return
FreeType error code. 0 means success.
FT_GetFilePath_From_Mac_ATS_Name¶
Defined in FT_MAC_H (freetype/ftmac.h).
Return a pathname of the disk file and face index for given font name that is handled by ATS framework.
input
fontName | Mac OS name of the font in ATS framework. |
output
path | Buffer to store pathname of the file. For passing to |
maxPathSize | Lengths of the buffer |
face_index | Index of the face. For passing to |
return
FreeType error code. 0 means success.
FT_New_Face_From_FSSpec¶
Defined in FT_MAC_H (freetype/ftmac.h).
Create a new face object from a given resource and typeface index using an FSSpec to the font file.
inout
library | A handle to the library resource. |
input
Freetype Osx
spec | FSSpec to the font file. |
face_index | The index of the face within the resource. The first face has index 0. |
output
aface | A handle to a new face object. |
return
FreeType error code. 0 means success.
note
FT_New_Face_From_FSSpec
is identical to FT_New_Face
except it accepts an FSSpec instead of a path.
FT_New_Face_From_FSRef¶
Defined in FT_MAC_H (freetype/ftmac.h).
Create a new face object from a given resource and typeface index using an FSRef to the font file.
inout
library | A handle to the library resource. |
input
spec | FSRef to the font file. |
face_index | The index of the face within the resource. The first face has index 0. |
output
Freetype Library Mac Os X Downloads
aface | A handle to a new face object. |
return
FreeType error code. 0 means success.
note

Freetype Macos
FT_New_Face_From_FSRef
is identical to FT_New_Face
except it accepts an FSRef instead of a path.
Freetype Mac
I substituted OS X's native 'config.guess' and 'config.sub', and the configure process finishes smoothly now. However, make starts to fail when it looks for what appear to be a ton of X11-related files and definitions:
/usr/src/freetype-build/freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:22: header file 'X11/Xlib.h' not found
/usr/src/freetype-build/freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:23: header file 'X11/Xutil.h' not found
/usr/src/freetype-build/freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:24: header file 'X11/cursorfont.h' not found
/usr/src/freetype-build/freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:76: undefined type, found `Window'
/usr/src/freetype-build/freetype-1.3.1/test/arch/unix/../../arch/unix/gwin_x11.c:77: undefined type, found `GC'
[etc.]
Anyone have any insight? Anyone make it all the way through the install process? I think all I really want make to do is to forego X11 or xfs support, but I don't want to mess with the makefile until I ask the tribe for wisdom.
Much appreciated,
Matt Holford / billbaloney