Public Member Functions

glv::Font Class Reference

Font. More...

#include <glv_font.h>

List of all members.

Public Member Functions

virtual float advance (const char c) const
 Get advance amount (width) of character.
virtual float advance (const char *text) const
 Returns total advance width of text string.
virtual void getBounds (float &w, float &h, const char *text) const
 Get bounding box of text string.
virtual void render (const char *text, float x=0, float=0, float z=0)
 Render text string.
FontletterSpacing (float v)
 Set spacing, in ems, between the left and right edges of successive letters.
FontlineSpacing (float v)
 Set spacing, in ems, between lines.
Fontsize (unsigned size)
 Set the font size in pixels.
FonttabSpaces (unsigned spaces)
 Set number of spaces per tab.
float baseline () const
 Get absolute position on which glyphs rest.
float cap () const
 Get distance from baseline to top of uppercase glyphs.
float xheight () const
 Get distance from baseline to top of lowercase glyphs.
float descent () const
 Get distance from baseline to lowest position of glyphs.
float letterSpacing () const
 Get letter spacing, in ems.
float lineSpacing () const
 Get line spacing, in ems.
float scaleX () const
 Get scaling factor in x direction.
unsigned size () const
 Get font size, in pixels.
unsigned tabSpaces () const
 Get number of spaces per tab.

Detailed Description

Font.


The documentation for this class was generated from the following files: