TGFont.cxx File Reference

#include "TGFont.h"
#include "TGClient.h"
#include "THashTable.h"
#include "TVirtualX.h"
#include "TObjString.h"
#include "TGWidget.h"
#include <errno.h>
#include <stdlib.h>
#include <limits.h>
#include "Riostream.h"
#include "TROOT.h"
#include "TError.h"
#include "TMath.h"

Go to the source code of this file.

Classes

struct  XLFDAttributes_t
class  TNamedFont
struct  FontStateMap_t

Defines

#define FONT_FAMILY   0
#define FONT_SIZE   1
#define FONT_WEIGHT   2
#define FONT_SLANT   3
#define FONT_UNDERLINE   4
#define FONT_OVERSTRIKE   5
#define FONT_NUMFIELDS   6
#define XLFD_FOUNDRY   0
#define XLFD_FAMILY   1
#define XLFD_WEIGHT   2
#define XLFD_SLANT   3
#define XLFD_SETWIDTH   4
#define XLFD_ADD_STYLE   5
#define XLFD_PIXEL_SIZE   6
#define XLFD_POINT_SIZE   7
#define XLFD_RESOLUTION_X   8
#define XLFD_RESOLUTION_Y   9
#define XLFD_SPACING   10
#define XLFD_AVERAGE_WIDTH   11
#define XLFD_REGISTRY   12
#define XLFD_ENCODING   13
#define XLFD_NUMFIELDS   14
#define MAX_LINES   50
#define MAXUSE   128

Enumerations

enum  EFontSpacing
enum  EFontSetWidth
enum  EFontCharset
enum  ECharType

Functions

 ClassImp (TGFont) ClassImp(TGFontPool) ClassImp(TGTextLayout) struct LayoutChunk_t
static int GetControlCharSubst (int c, char buf[4])
static char * GetToken (char *str)

Variables

static const FontStateMap_t gWeightMap []
static const FontStateMap_t gSlantMap []
static const FontStateMap_t gUnderlineMap []
static const FontStateMap_t gOverstrikeMap []
static const FontStateMap_t gXlfdgWeightMap []
static const FontStateMap_t gXlfdSlantMap []
static const FontStateMap_t gXlfdSetwidthMap []
static const FontStateMap_t gXlfdCharsetMap []
static char gHexChars [] = "0123456789abcdefxtnvr\\"
static char gMapChars []


Define Documentation

#define FONT_FAMILY   0

Referenced by TGFontPool::GetAttributeInfo(), and sfnt_load_face().

#define FONT_NUMFIELDS   6

Referenced by TGFontPool::FreeAttributeInfo(), and TGFontPool::GetAttributeInfo().

#define FONT_OVERSTRIKE   5

Referenced by TGFontPool::GetAttributeInfo().

#define FONT_SIZE   1

Referenced by TGFontPool::GetAttributeInfo().

#define FONT_SLANT   3

Referenced by TGFontPool::GetAttributeInfo().

#define FONT_UNDERLINE   4

Referenced by TGFontPool::GetAttributeInfo().

#define FONT_WEIGHT   2

Referenced by TGFontPool::GetAttributeInfo().

#define MAX_LINES   50

Referenced by TGFont::ComputeTextLayout().

#define MAXUSE   128

Referenced by TGTextLayout::ToPostscript().

#define XLFD_ADD_STYLE   5

Referenced by TGFontPool::ParseXLFD().

#define XLFD_AVERAGE_WIDTH   11

#define XLFD_ENCODING   13

#define XLFD_FAMILY   1

Referenced by TGFontPool::ParseXLFD().

#define XLFD_FOUNDRY   0

Referenced by TGFontPool::ParseXLFD().

#define XLFD_NUMFIELDS   14

Referenced by TGFontPool::ParseXLFD().

#define XLFD_PIXEL_SIZE   6

#define XLFD_POINT_SIZE   7

#define XLFD_REGISTRY   12

#define XLFD_RESOLUTION_X   8

#define XLFD_RESOLUTION_Y   9

#define XLFD_SETWIDTH   4

#define XLFD_SLANT   3

Referenced by TGFontPool::ParseXLFD().

#define XLFD_SPACING   10

#define XLFD_WEIGHT   2

Referenced by TGFontPool::ParseXLFD().


Enumeration Type Documentation

enum ECharType

Definition at line 177 of file TGFont.cxx.

enum EFontCharset

Definition at line 159 of file TGFont.cxx.

enum EFontSetWidth

Definition at line 154 of file TGFont.cxx.

enum EFontSpacing

Definition at line 149 of file TGFont.cxx.


Function Documentation

ClassImp ( TGFont   ) 

Definition at line 52 of file TGFont.cxx.

References fStart.

static Int_t GetControlCharSubst ( int  c,
char  buf[4] 
) [static]

Definition at line 2695 of file TGFont.cxx.

Referenced by TGFont::DrawCharsExp().

static char* GetToken ( char *  str  )  [static]

Definition at line 1878 of file TGFont.cxx.

References p.

Referenced by G__G__Net_250_0_18(), and TGFontPool::ParseFontName().


Variable Documentation

char gHexChars[] = "0123456789abcdefxtnvr\\" [static]

Definition at line 247 of file TGFont.cxx.

char gMapChars[] [static]

Initial value:

 {
   0, 0, 0, 0, 0, 0, 0, 'a', 'b', 't', 'n', 'v', 'f', 'r', 0
}

Definition at line 254 of file TGFont.cxx.

const FontStateMap_t gOverstrikeMap[] [static]

Initial value:

 {
   { 1, "overstrike" },
   { 0, 0            }
}

Definition at line 203 of file TGFont.cxx.

Referenced by TGFontPool::ParseFontName().

const FontStateMap_t gSlantMap[] [static]

Initial value:

 {
   { kFontSlantRoman,   "roman"  },
   { kFontSlantItalic,  "italic" },
   { kFontSlantUnknown, 0        }
}

Definition at line 192 of file TGFont.cxx.

Referenced by TGFontPool::GetAttributeInfo(), TGFontPool::GetFont(), and TGFontPool::ParseFontName().

const FontStateMap_t gUnderlineMap[] [static]

Initial value:

 {
   { 1, "underline" },
   { 0, 0           }
}

Definition at line 198 of file TGFont.cxx.

Referenced by TGFontPool::ParseFontName().

const FontStateMap_t gWeightMap[] [static]

Initial value:

 {
   { kFontWeightNormal,  "normal" },
   { kFontWeightBold,    "bold"   },
   { kFontWeightUnknown, 0        }
}

Definition at line 186 of file TGFont.cxx.

Referenced by TGFontPool::GetAttributeInfo(), TGFontPool::GetFont(), and TGFontPool::ParseFontName().

const FontStateMap_t gXlfdCharsetMap[] [static]

Initial value:

 {
   { kFontCSNormal, "iso8859" },
   { kFontCSSymbol, "adobe"   },
   { kFontCSSymbol, "sun"     },
   { kFontCSOther,  0         }
}

Definition at line 237 of file TGFont.cxx.

const FontStateMap_t gXlfdgWeightMap[] [static]

Initial value:

 {
   { kFontWeightNormal, "normal"   },
   { kFontWeightNormal, "medium"   },
   { kFontWeightNormal, "book"     },
   { kFontWeightNormal, "light"    },
   { kFontWeightBold,   "bold"     },
   { kFontWeightBold,   "demi"     },
   { kFontWeightBold,   "demibold" },
   { kFontWeightNormal,  0         }  
}

Definition at line 211 of file TGFont.cxx.

Referenced by TGFontPool::ParseXLFD().

const FontStateMap_t gXlfdSetwidthMap[] [static]

Initial value:

 {
   { kFontSWNormal,   "normal"        },
   { kFontSWCondence, "narrow"        },
   { kFontSWCondence, "semicondensed" },
   { kFontSWCondence, "condensed"     },
   { kFontSWUnknown,  0               }
}

Definition at line 229 of file TGFont.cxx.

const FontStateMap_t gXlfdSlantMap[] [static]

Initial value:

 {
   { kFontSlantRoman,   "r"  },
   { kFontSlantItalic,  "i"  },
   { kFontSlantOblique, "o"  },
   { kFontSlantRoman,   0    }  
}

Definition at line 222 of file TGFont.cxx.

Referenced by TGFontPool::ParseXLFD().


Generated on Tue Jul 5 16:00:55 2011 for ROOT_528-00b_version by  doxygen 1.5.1