|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CFontGenerator Class ReferenceGenerate bitmap based on a true type font (using freetype2).
More...
#include <font_generator.h>
List of all members.
Public Methods |
| CFontGenerator (const std::string &fontFileName, const std::string &fontExFileName="") |
| Constructor. More...
|
virtual | ~CFontGenerator () |
uint8 * | getBitmap (ucchar c, uint32 size, uint32 &width, uint32 &height, uint32 &pitch, sint32 &left, sint32 &top, sint32 &advx, uint32 &glyphIndex) |
| generate and return a bitmap. More...
|
void | getSizes (ucchar c, uint32 size, uint32 &width, uint32 &height) |
| returns the width and height of a character using a specific size and. More...
|
void | getKerning (ucchar left, ucchar right, sint32 &kernx) |
uint32 | getCharIndex (ucchar c) |
Public Attributes |
std::string | FontFileName |
Private Methods |
const char * | getFT2Error (FT_Error fte) |
Private Attributes |
FT_Face | _Face |
Static Private Attributes |
FT_Library | _Library |
bool | _LibraryInit = false |
Detailed Description
Generate bitmap based on a true type font (using freetype2).
-
Author:
-
Vianney Lecroart , Nevrax France
-
Date:
-
2000
Definition at line 51 of file font_generator.h.
Constructor & Destructor Documentation
NL3D::CFontGenerator::CFontGenerator |
( |
const std::string & |
fontFileName, |
|
|
const std::string & |
fontExFileName = "" |
|
) |
|
|
NL3D::CFontGenerator::~CFontGenerator |
( |
|
) |
[virtual] |
|
Member Function Documentation
|
generate and return a bitmap.
-
Parameters:
-
c |
the unicode char |
size |
size of the generated font in ??? format |
width |
width of the generated bitmap, this value is set by this function |
height |
height of the generated bitmap, this value is set by this function |
pitch |
pitch of the generated bitmap (+ or - the number of bytes per row), this value is set by this function |
Definition at line 169 of file font_generator.cpp.
References _Face, getFT2Error, height, nlerror, ucchar, and width. |
const char * NL3D::CFontGenerator::getFT2Error |
( |
FT_Error |
fte |
) |
[private] |
|
Member Data Documentation
FT_Face NL3D::CFontGenerator::_Face [private]
|
|
FT_Library NL3D::CFontGenerator::_Library [static, private]
|
|
bool NL3D::CFontGenerator::_LibraryInit = false [static, private]
|
|
std::string NL3D::CFontGenerator::FontFileName
|
|
The documentation for this class was generated from the following files:
|
|