FontFactory Struct ReferenceInherits Service.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Methods | |
| virtual bool | initialize ()=0 |
| virtual bool | setTypeface (const Char *filename)=0 |
| virtual bool | setPixelSize (int pixels)=0 |
| virtual void | setGlyphs (const Char *glyphs)=0 |
| virtual bool | setMaxTextureSize (int size)=0 |
| virtual void | antialias (bool yesNo)=0 |
| virtual TextureFont * | createTextureFont ()=0 |
FontFactory uses FreeType2 (http://www.freetype.org/) to generate the font information. The FT2 shared library must be present in order for this service to work.
|
|
Enable/disable antialiasing. Enabled by default. |
|
|
Create a texture font. |
|
|
Initialize the factory and the FreeType engine.
|
|
|
Specify a set of characters for the new font. If you do not specify a glyph list, you will get the standard ASCII character set. |
|
|
Specify a maximum size for the texture. The parameter size must be a power of two and greater than four. The default is 256. |
|
|
Specify the size of the character cell, in pixels. From the FreeType documentation: "The character size is really the size of an abstract square called the EM, used to design the font. However, depending on the font design, glyphs will be smaller or greater than the EM. This means that setting the pixel size to, say, 8x8 doesn't guarantee in any way that you will get glyph bitmaps that all fit within an 8x8 cell (sometimes even far from it)."
|
|
|
Specify the typeface for the font. FontFactory supports TrueType and Type1 fonts.
|
|
Flat Four Engine Copyright (C) 2001 by 379, Inc. |
This page generated by Doxygen |