#include <FTSize.h>
Definition at line 18 of file FTSize.h.
Public Member Functions | |
FTSize () | |
Default Constructor. | |
virtual | ~FTSize () |
Destructor. | |
bool | CharSize (FT_Face *face, unsigned int point_size, unsigned int x_resolution, unsigned int y_resolution) |
Sets the char size for the current face. | |
unsigned int | CharSize () const |
get the char size for the current face. | |
float | Ascender () const |
Gets the global ascender height for the face in pixels. | |
float | Descender () const |
Gets the global descender height for the face in pixels. | |
float | Height () const |
Gets the global face height for the face. | |
float | Width () const |
Gets the global face width for the face. | |
float | Underline () const |
Gets the underline position for the face. | |
FT_Error | Error () const |
Queries for errors. |
|
Default Constructor.
Definition at line 4 of file FTSize.cpp. |
|
Destructor.
Definition at line 14 of file FTSize.cpp. |
|
Gets the global ascender height for the face in pixels.
Definition at line 52 of file FTSize.cpp. Referenced by FTFont::Ascender(). |
|
get the char size for the current face.
Definition at line 46 of file FTSize.cpp. |
|
Sets the char size for the current face. This doesn't guarantee that the size was set correctly. Clients should check errors.
Definition at line 18 of file FTSize.cpp. Referenced by FTFont::FaceSize(), and FTFace::Size(). |
|
Gets the global descender height for the face in pixels.
Definition at line 58 of file FTSize.cpp. Referenced by FTFont::Descender(). |
|
Queries for errors.
Definition at line 102 of file FTSize.h. Referenced by FTFace::Size(). |
|
Gets the global face height for the face. If the face is scalable this returns the height of the global bounding box which ensures that any glyph will be less than or equal to this height. If the font isn't scalable there is no guarantee that glyphs will not be taller than this value.
Definition at line 64 of file FTSize.cpp. Referenced by FTFont::LineHeight(). |
|
Gets the underline position for the face.
Definition at line 100 of file FTSize.cpp. |
|
Gets the global face width for the face. If the face is scalable this returns the width of the global bounding box which ensures that any glyph will be less than or equal to this width. If the font isn't scalable this value is the max_advance for the face.
Definition at line 82 of file FTSize.cpp. |