library: libGraf #include "TTF.h" |
TTF
class description - header file - source file
viewCVS header - viewCVS source
class TTF
Function Members (Methods)
Display options:
Data Members
public:
enum { | kTTMaxFonts | |
| kMaxGlyphs | |
}; | | |
private:
static Int_t | fgAscent | string ascent, used to compute Y alignment |
static FT_BBox | fgCBox | string control box |
static void* | fgCharMap[32] | font character map |
static Int_t | fgCurFontIdx | current font index |
static Int_t | fgFontCount | number of fonts loaded |
static char* | fgFontName[32] | font name |
static void* | fgFace[32] | font face |
static TTGlyph | fgGlyphs[1024] | glyphs |
static Bool_t | fgHinting | use hinting (true by default) |
static Bool_t | fgInit | true if the Init has been called |
static Bool_t | fgKerning | use kerning (true by default) |
static void* | fgLibrary | FreeType font library |
static Int_t | fgNumGlyphs | number of glyphs in the string |
static FT_Matrix* | fgRotMatrix | rotation matrix |
static Bool_t | fgSmoothing | use anti-aliasing (true when >8 planes, false otherwise) |
static Int_t | fgTBlankW | trailing blanks width |
static Int_t | fgWidth | string width, used to compute X alignment |
TTF
Interface to the freetype 2 library.
void Init()
Initialise the TrueType fonts interface.
void LayoutGlyphs()
Compute the glyps positions, fgAscent and fgWidth (needed for alignment).
Perform the Glyphs transformation.
Compute the string control box.
If required take the "kerning" into account.
SetRotation and PrepareString should have been called before.
void PrepareString(const char *string)
Put the characters in "string" in the "glyphs" array.
Int_t SetTextFont(const char *fontname)
Set text font to specified name.
font : font name
Set text font to specified name. This function returns 0 if
the specified font is found, 1 if not.
void SetTextFont(Font_t fontnumber)
Set specified font.
List of the currently supported fonts (screen and PostScript)
=============================================================
Font ID X11 TTF
1 : times-medium-i-normal timesi.ttf
2 : times-bold-r-normal timesbd.ttf
3 : times-bold-i-normal timesi.ttf
4 : helvetica-medium-r-normal arial.ttf
5 : helvetica-medium-o-normal ariali.ttf
6 : helvetica-bold-r-normal arialbd.ttf
7 : helvetica-bold-o-normal arialbi.ttf
8 : courier-medium-r-normal cour.ttf
9 : courier-medium-o-normal couri.ttf
10 : courier-bold-r-normal courbd.ttf
11 : courier-bold-o-normal courbi.ttf
12 : symbol-medium-r-normal symbol.ttf
13 : times-medium-r-normal times.ttf
14 : wingding.ttf
Author: Olivier Couet 01/10/02
Last update: root/graf:$Name: $:$Id: TTF.cxx,v 1.15 2006/11/16 17:17:37 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.