Rocket::Core::FontFace Class Reference

#include <FontFace.h>


Public Member Functions

 FontFace (FT_Face face, Font::Style style, Font::Weight weight, bool release_stream)
Font::Style GetStyle () const
Font::Weight GetWeight () const
FontFaceHandleGetHandle (const String &charset, int size)
void ReleaseFace ()

Detailed Description

Author:
Peter Curry

Member Function Documentation

Font::Style Rocket::Core::FontFace::GetStyle (  )  const

Returns the style of the font face.

Returns:
The font face's style.

Font::Weight Rocket::Core::FontFace::GetWeight (  )  const

Returns the weight of the font face.

Returns:
The font face's weight.

FontFaceHandle * Rocket::Core::FontFace::GetHandle ( const String charset,
int  size 
)

Returns a handle for positioning and rendering this face at the given size.

Parameters:
[in] charset The set of characters in the handle, as a comma-separated list of unicode ranges.
[in] size The size of the desired handle, in points.
Returns:
The shared font handle.

void Rocket::Core::FontFace::ReleaseFace (  ) 

Releases the face's FreeType face structure. This will mean handles for new sizes cannot be constructed, but existing ones can still be fetched.


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