|
GL Studio C++ Runtime API
|
Character attributes. One item for each character in the set. More...
#include <gls_font_base.h>
Public Member Functions | |
| CharAttr_t () | |
| Default constructor to initialize character attribute data to known values. | |
| CharAttr_t (GLfloat w, GLfloat h, GLfloat vTexX1, GLfloat vTexX2, GLfloat fTexX1, GLfloat fTexX2, GLfloat vTexY1, GLfloat vTexY2, GLfloat fTexY1, GLfloat fTexY2, GLfloat horiBearingX_, GLfloat horiBearingY_, GLfloat horiAdvance_, GLfloat vertBearingX_, GLfloat vertBearingY_, GLfloat vertAdvance_) | |
Character attributes. One item for each character in the set.
|
inline |
Constructor
| w | Character width in pixels/points. |
| h | Character height in pixels/points. |
| vTexX1 | Left most x position in the texture for variable width font spacing. (in texture coordinates) |
| vTexX2 | Right most x position in the texture for variable width font spacing. (in texture coordinates) |
| fTexX1 | Left most x position in the texture for fixed width font spacing. (in texture coordinates) |
| fTexX2 | Right most x position in the texture for fixed width font spacing. (in texture coordinates) |
| vTexY1 | Lowest y position in the texture for variable height font spacing. (in texture coordinates) |
| vTexY2 | Upper most y position in the texture for variable height font spacing. (in texture coordinates) |
| fTexY1 | Lowest y position in the texture for fixed height font spacing. (in texture coordinates) |
| fTexY2 | Upper most y position in the texture for fixed height font spacing. (in texture coordinates) |
| horiBearingX_ | Distance from pen position to the left edge of the character (varTexX1) for horizontal strings. |
| horiBearingY_ | Distance from pen position (ie the baseline) to the top edge of the character (varTexY2) for horizontal strings. |
| horiAdvance_ | Distance to advance the pen position after drawing this character for horizontal strings. |
| vertBearingX_ | Distance from pen position (ie the center line) to the left edge of the character (varTexX1) for vertical strings. |
| vertBearingY_ | Distance from pen position to the top edge of the character (varTexY2) for vertical strings. |
| vertAdvance_ | Distance to advance the pen position after drawing this character for vertical strings. |