Choose a font file that the APPX runtime account can read on the chart server. A font number chooses a fallback for missing characters. A font index chooses a face inside a collection file.
Font Location
For a TrueType font, pass its file name, such as arial.ttf for Arial or arialbd.ttf for Arial Bold on Windows. An absolute pathname selects the file directly.
On Windows, check the Windows Fonts directory and the fonts subdirectory beside the ChartDirector DLL. Private fonts can use that subdirectory.
On Linux, keep the fonts directory with libchartdir.so. The original FreeBSD and Solaris packages also used this layout.
Use FONTPATH to add directories to the search. Check permissions as the APPX runtime account. The APPX installation manuals cover missing fonts on the chart server.
Older ChartDirector releases also supported Type 1 (.pfa and .pfb), Windows bitmap (.fon), Mac font suitcase and .dfont files, and Portable Compiled Fonts (.pcf) on Linux, FreeBSD, and Solaris. Consult the PHP renderer’s font reference for the installed version.
Artificial Boldening and Italicizing
If the font has no separate bold or italic face, append Bold or Italic to its file name, separated by a space. For example, mtcorsva.ttf Bold requests a synthesized bold face. Both styles can be requested together.
Font Numbers
An APPX text specification accepts up to three fonts. Supply font number 1, 2, or 3 to .TEXT SET FONT NAME. For example, select arial.ttf for font 1 and mingliu.ttc for font 2. If the first font lacks a character, the renderer can use the fallback.
Indirect Font Names
The renderer’s font table maps these names to default faces. The Windows file names below illustrate the original mappings.
A font collection, such as a .ttc file, can contain several faces. Index 0 selects the first face and is the default. Use .TEXT SET FONT INDEX to select another face in that file.
Comments:
Read what other users have said about this page or add your own comments.
-- JeanNeron - 2011-11-10