|
|||||||||||||||
Using the Font Imaging libraryThe Font Imaging Library provides a scaler-independent interface to Apple's glyph-imaging code. It is not a part of the Mac OS, but it is supported by Apple's font group. It provides an officially sanctioned way to draw arbitrary glyphs in a TrueType font. Although it is officially sanctioned, it is not guaranteed to be bug-free; problems should be reported to Apple. There are currently three TrueType scalers which have been used in the Mac OS:
Note that the Bass traps are still present in Mac OS 8.5, but they are no longer maintained and should not be used. Other TrueType scalers may become available with future versions of the Mac OS. Outside of Apple, there is the FreeType TrueType scaler. The Font Imaging library does not currently support the FreeType scaler, but we plan to add support for it in the future. The Font Imaging Library will automatically select a scaler to use if more than one is available. This selection can be overriden by the client.
The Font Imaging library interfacesThe functions are relatively self-explanatory and straightforward to use. A couple of notes: We currently provide two ways for accessing the old "Bass trap" TrueType scaler. One is through the Bass traps proper, which continue to be available in the MacOS through MacOS 9.0 at least. The other is through a copy of the Bass trap code compiled into the Font Imaging library. This is compiled as PowerPC code and should execute more quickly, and it will work on systems from MacOS 8.5 onwards. Applications that use the FIL will need to include the resources in FontImagingLib.rsrc. The Font Imaging Library uses an opaque structure, the An The FIL creates temporary files that it uses to access glyph data. Sufficient room will be needed on your boot disk to hold a complete extra copy of the font. Most the functions return an Point sizes are fractional, as is the case with Apple Type Services for Unicode�Ѣ Imaging (ATSUI). The outlines returned are QuickTime paths. They are identical with QuickDraw GX paths; the specific format for the paths is found in Inside Macintosh: QuickDraw GX Graphics, pages 2-106 through 2-108, which is available at: ftp://ftp.apple.com/developer/Technical_Publications/Archives/QDGX_Graphics.sit.hqx
Support filesIn the ":Support Files:" directory are FontImagingLib.rsrc and GlyphViewer. The former is a set of resources that you should include in your application for FIL to work properly. The latter is a simple application that will check FIL support on your machine.
Version history and release notesVersion 1.0b2
Version 1.0b1
Version 1.0d6
Known problems
�� |