Rocket::Core::FontFamily Class Reference

#include <FontFamily.h>

Collaboration diagram for Rocket::Core::FontFamily:

Public Member Functions

 FontFamily (const String &name)
bool AddFace (FT_Face ft_face, Font::Style style, Font::Weight weight, bool release_stream)
FontFaceHandleGetFaceHandle (const String &charset, Font::Style style, Font::Weight weight, int size)

Detailed Description

Author:
Peter Curry

Member Function Documentation

bool Rocket::Core::FontFamily::AddFace ( FT_Face  ft_face,
Font::Style  style,
Font::Weight  weight,
bool  release_stream 
)

Adds a new face to the family.

Parameters:
[in] ft_face The previously loaded FreeType face.
[in] style The style of the new face.
[in] weight The weight of the new face.
[in] release_stream True if the application must free the face's memory stream.
Returns:
True if the face was loaded successfully, false otherwise.

FontFaceHandle * Rocket::Core::FontFamily::GetFaceHandle ( const String charset,
Font::Style  style,
Font::Weight  weight,
int  size 
)

Returns a handle to the most appropriate font in the family, at the correct size.

Parameters:
[in] charset The set of characters in the handle, as a comma-separated list of unicode ranges.
[in] style The style of the desired handle.
[in] weight The weight of the desired handle.
[in] size The size of desired handle, in points.
Returns:
A valid handle if a matching (or closely matching) font face was found, NULL otherwise.


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