Font.h File Reference

Contains the Font class, a class that encapsulates the rendering of a single FreeType-compatible fonts in italics, with underlining, left-, right-, or center- justified, etc., and the FontManager class which provides application-wide management of Font objects. More...

#include <GG/AlignmentFlags.h>
#include <GG/Texture.h>
#include <set>
#include <boost/serialization/access.hpp>

Go to the source code of this file.

Namespaces

namespace  GG

Classes

class  GG::Font
 This class creates one or more 16-bpp OpenGL textures that contain rendered text from a requested font file at the requested point size, including only the requested ranges of characters. More...
struct  GG::Font::TextElement
 Used to encapsulate a token-like piece of text to be rendered using GG::Font. More...
struct  GG::Font::FormattingTag
 The type of TextElement that represents a text formatting tag. More...
struct  GG::Font::LineData
 Holds the essential data on each line that a string occupies when rendered with given format flags. More...
struct  GG::Font::LineData::CharData
 Contains the extent in pixels, the index into the original string, and the text formatting tags that should be applied before rendering of a visible character. More...
struct  GG::Font::RenderState
 Holds the state of tags during rendering of text. More...
class  GG::FontManager
 This singleton class is essentially a very thin wrapper around a map of Font smart pointers, keyed on font filename/point size pairs. More...

Functions

GG_API std::string GG::RgbaTag (const Clr &c)
 GG::GG_FLAG_TYPE (TextFormat)
FontManager & GG::GetFontManager ()
 GG::GG_EXCEPTION (FailedFTLibraryInit)

Variables

GG_API const TextFormat GG::FORMAT_NONE
GG_API const TextFormat GG::FORMAT_VCENTER
GG_API const TextFormat GG::FORMAT_TOP
GG_API const TextFormat GG::FORMAT_BOTTOM
GG_API const TextFormat GG::FORMAT_CENTER
GG_API const TextFormat GG::FORMAT_LEFT
GG_API const TextFormat GG::FORMAT_RIGHT
GG_API const TextFormat GG::FORMAT_WORDBREAK
GG_API const TextFormat GG::FORMAT_LINEWRAP
GG_API const TextFormat GG::FORMAT_IGNORETAGS


Detailed Description

Contains the Font class, a class that encapsulates the rendering of a single FreeType-compatible fonts in italics, with underlining, left-, right-, or center- justified, etc., and the FontManager class which provides application-wide management of Font objects.

Definition in file Font.h.


Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2