GFont.h File Reference

#include "string.h"
#include "GRect.h"
#include "LgiOsClasses.h"
#include "GLibrary.h"
#include "GLibraryUtils.h"
#include "GDisplayString.h"
#include "iconv.h"

Go to the source code of this file.

Classes

class  GTypeFace
 Font parameters collection. More...
class  GFont
 Font class. More...
class  GFontType
 Font type information and system font query tools. More...
class  GCharset
 Charset information class. More...
class  GCharsetSystem
 Charset table manager class. More...
class  GFontSystem
 Overall font system class. More...

Defines

#define FW_NORMAL   400
 The default font weight.
#define FW_BOLD   700
 Bold font weight.
#define DEFAULT_QUALITY   0
 Default font quality.
#define ANTIALIASED_QUALITY   1
 Specifically anti-aliased font.
#define NONANTIALIASED_QUALITY   2
 Specifically not anti-alias font.

Enumerations

enum  GCharSetType
 Charset definitions.

Functions

LgiFunc GCharsetLgiGetCsInfo (char *Cs)
 Returns information about a charset.
LgiFunc GCharsetLgiGetCsList ()
LgiFunc char * LgiDetectCharset (char *Utf8, int Len=-1, List< char > *Prefs=0)
 Returns the charset that best fits the input data.


Detailed Description

Author:
Matthew Allen

Function Documentation

LgiFunc char* LgiDetectCharset ( char *  Utf8,
int  Len = -1,
List< char > *  Prefs = 0 
)

Returns the charset that best fits the input data.

Parameters:
Utf8  The input text
Len  The byte length of the input text
Prefs  An optional list of prefered charsets to look through first

References GCharset::Charset, List< Type >::First(), GCharsetSystem::GetCsInfo(), List< Type >::Next(), and GCharset::UnicodeMap.

LgiFunc GCharset* LgiGetCsList (  ) 

Returns the start of an array of supported charsets, terminated by one with a NULL 'Charset' member.


Generated on Wed Dec 1 15:41:00 2010 for Lgi by  doxygen 1.5.7.1