omegalib  13.1
omega::Font Class Reference

#include <Font.h>

Public Types

enum  Align {
  HALeft = 1 << 0, HARight = 1 << 1, HACenter = 1 << 2, VATop = 1 << 3,
  VABottom = 1 << 4, VAMiddle = 1 << 5
}
 

Public Member Functions

 Font (FTFont *fontImpl)
 
void render (const String &text, float x, float y)
 
void render (const std::wstring &text, float x, float y)
 
Vector2f computeSize (const omega::String &text)
 Deprecated, use static getTextSize instead. More...
 
Vector2f computeWSize (const std::wstring &text)
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Static Public Member Functions

static void lock ()
 
static void unlock ()
 
static Vector2f getTextSize (const String &text, const String &font)
 Computes the size of the specified text in pixels, using the specified font. More...
 
static Vector2f getTextWSize (const std::wstring &text, const String &font)
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 

Additional Inherited Members

- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 
+ Inheritance diagram for omega::Font:

Member Enumeration Documentation

Enumerator
HALeft 
HARight 
HACenter 
VATop 
VABottom 
VAMiddle 

Constructor & Destructor Documentation

omega::Font::Font ( FTFont *  fontImpl)
inline

Member Function Documentation

Vector2f omega::Font::computeSize ( const omega::String text)

Deprecated, use static getTextSize instead.

Vector2f omega::Font::computeWSize ( const std::wstring &  text)
static Vector2f omega::Font::getTextSize ( const String text,
const String font 
)
static

Computes the size of the specified text in pixels, using the specified font.

static Vector2f omega::Font::getTextWSize ( const std::wstring &  text,
const String font 
)
static
static void omega::Font::lock ( )
static
void omega::Font::render ( const String text,
float  x,
float  y 
)
void omega::Font::render ( const std::wstring &  text,
float  x,
float  y 
)
static void omega::Font::unlock ( )
static

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