GFontSystem Class Reference

Overall font system class. More...

#include <GFont.h>

Inherits GLibrary.

List of all members.

Public Member Functions

bool EnumerateFonts (List< const char > &Fonts)
 Enumerate all installed fonts.
bool GetGlyphSubSupport ()
 Returns whether the current Lgi implementation supports glyph sub.
bool GetDefaultGlyphSub ()
 Returns whether glyph sub is currently turned on.
void SetDefaultGlyphSub (bool i)
 Turns the glyph sub feature on or off.
GFontGetGlyph (int u, GFont *UserFont)
 Returns a font that can render the specified unicode code point.
GFontGetBestFont (char *Str)

Static Public Member Functions

static GFontSystemInst ()
 Get a pointer to the font system.

Friends

class GApp
class GDisplayString


Detailed Description

Overall font system class.

Member Function Documentation

GFont * GFontSystem::GetGlyph ( int  u,
GFont UserFont 
)

Returns a font that can render the specified unicode code point.

Parameters:
u  A utf-32 character
UserFont  The base font used for rendering

References GFont::Create(), DLinkList::Empty(), EnumerateFonts(), GTypeFace::Face(), List< Type >::First(), GFont::GetGlyphMap(), List< Type >::Insert(), Inst(), LGI_OS_LINUX, LGI_OS_WIN9X, LGI_OS_WINNT, and List< Type >::Next().

Referenced by GetBestFont().

GFont * GFontSystem::GetBestFont ( char *  Str  ) 

This looks for a font that can contains the most glyphs for a given string, ideally it can render the whole thing. But the next best alternative is returned when no font matches all characters in the string.

References List< Type >::First(), GetGlyph(), List< Type >::Insert(), List< Type >::Next(), and SysFont.


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

Generated on Wed May 11 07:51:57 2011 for Lgi by  doxygen 1.5.6