#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. | |
unsigned int | XPixelsPerEm () const |
unsigned int | YPixelsPerEm () const |
FT_Error | Error () const |
Queries for errors. |
|
Default Constructor.
Definition at line 4 of file FTSize.cpp. |
|
Destructor.
Definition at line 12 of file FTSize.cpp. |
|
Gets the global ascender height for the face in pixels.
Definition at line 43 of file FTSize.cpp. Referenced by FTFont::Ascender(). |
|
get the char size for the current face.
Definition at line 37 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 16 of file FTSize.cpp. Referenced by FTFont::FaceSize(), and FTFace::Size(). |
|
Gets the global descender height for the face in pixels.
Definition at line 49 of file FTSize.cpp. Referenced by FTFont::Descender(). |
|
Queries for errors.
Definition at line 106 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 55 of file FTSize.cpp. |
|
Gets the underline position for the face.
Definition at line 91 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 73 of file FTSize.cpp. |
|
Definition at line 96 of file FTSize.cpp. |
|
Definition at line 101 of file FTSize.cpp. |