Logo ROOT  
Reference Guide
TGFont.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Fons Rademakers 20/5/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGFont
13 #define ROOT_TGFont
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGFont and TGFontPool //
19 // //
20 // Encapsulate fonts used in the GUI system. //
21 // TGFontPool provides a pool of fonts. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TNamed.h"
26 #include "TGObject.h"
27 #include "TRefCnt.h"
28 
29 class THashTable;
30 class TObjString;
31 class TGFont;
32 
33 // Flags passed to TGFont::MeasureChars and TGFont::ComputeTextLayout
34 
41 };
42 
51 };
52 
53 enum EFontSlant {
58 };
59 
60 
61 struct FontMetrics_t {
62  Int_t fAscent; // from baseline to top of font
63  Int_t fDescent; // from baseline to bottom of font
64  Int_t fLinespace; // the sum of the ascent and descent
65  Int_t fMaxWidth; // width of widest character in font
66  Bool_t fFixed; // true if monospace, false otherwise
67 };
68 
69 
71 
72  const char *fFamily; // Font family. The most important field.
73  Int_t fPointsize; // Pointsize of font, 0 for default size, or negative number meaning pixel size.
74  Int_t fWeight; // Weight flag; see below for def'n.
75  Int_t fSlant; // Slant flag; see below for def'n.
76  Int_t fUnderline; // Non-zero for underline font.
77  Int_t fOverstrike; // Non-zero for overstrike font.
78 
79  FontAttributes_t(): // default constructor
80  fFamily (0),
81  fPointsize (0),
84  fUnderline (0),
85  fOverstrike(0) { }
86 
87  FontAttributes_t(const FontAttributes_t& f): // copy constructor
88  fFamily (f.fFamily),
90  fWeight (f.fWeight),
91  fSlant (f.fSlant),
94 
95  FontAttributes_t& operator=(const FontAttributes_t& f) // assignment operator
96  {
97  if (this != &f) {
98  fFamily = f.fFamily;
99  fPointsize = f.fPointsize;
100  fWeight = f.fWeight;
101  fSlant = f.fSlant;
102  fUnderline = f.fUnderline;
103  fOverstrike = f.fOverstrike;
104  }
105  return *this;
106  }
107 
108 };
109 
110 
111 
112 struct LayoutChunk_t;
113 
114 
115 class TGTextLayout : public TObject {
116 
117 friend class TGFont;
118 
119 protected:
120  const TGFont *fFont; // The font used when laying out the text.
121  const char *fString; // The string that was layed out.
122  Int_t fWidth; // The maximum width of all lines in the text layout.
123  Int_t fNumChunks; // Number of chunks actually used in following array.
124  LayoutChunk_t *fChunks; // Array of chunks. The actual size will be maxChunks.
125 
126  TGTextLayout(const TGTextLayout &tlayout); // not implemented
127  void operator=(const TGTextLayout &tlayout); // not implemented
128 
129 public:
130  TGTextLayout(): fFont(NULL), fString(""), fWidth(0), fNumChunks(0), fChunks(NULL) {}
131  virtual ~TGTextLayout();
132 
133  void DrawText(Drawable_t dst, GContext_t gc, Int_t x, Int_t y,
134  Int_t firstChar, Int_t lastChar) const;
135  void UnderlineChar(Drawable_t dst, GContext_t gc,
136  Int_t x, Int_t y, Int_t underline) const;
137  Int_t PointToChar(Int_t x, Int_t y) const;
138  Int_t CharBbox(Int_t index, Int_t *x, Int_t *y, Int_t *w, Int_t *h) const;
139  Int_t DistanceToText(Int_t x, Int_t y) const;
140  Int_t IntersectText(Int_t x, Int_t y, Int_t w, Int_t h) const;
141  void ToPostscript(TString *dst) const;
142 
143  ClassDef(TGTextLayout,0) // Keep track of string measurement information.
144 };
145 
146 
147 // The following class is used to keep track of the generic information about a font.
148 
149 class TGFont : public TNamed, public TRefCnt {
150 
151 friend class TGFontPool;
152 friend class TGTextLayout;
153 
154 private:
155  FontStruct_t fFontStruct; // Low level graphics fontstruct
156  FontH_t fFontH; // Font handle (derived from fontstruct)
157  FontMetrics_t fFM; // Cached font metrics
158  FontAttributes_t fFA; // Actual font attributes obtained when the font was created
159  TObjString *fNamedHash; // Pointer to the named object TGFont was based on
160  Int_t fTabWidth; // Width of tabs in this font (pixels).
161  Int_t fUnderlinePos; // Offset from baseline to origin of underline bar
162  // (used for drawing underlines on a non-underlined font).
163  Int_t fUnderlineHeight; // Height of underline bar (used for drawing
164  // underlines on a non-underlined font).
165  char fTypes[256]; // Array giving types of all characters in
166  // the font, used when displaying control characters.
167  Int_t fWidths[256]; // Array giving widths of all possible characters in the font.
168  Int_t fBarHeight; // Height of underline or overstrike bar
169  // (used for simulating a native underlined or strikeout font).
170 
171 protected:
172  TGFont(const char *name)
173  : TNamed(name,""), TRefCnt(), fFontStruct(0), fFontH(0), fFM(),
175  {
176  SetRefCount(1);
177  for (Int_t i=0; i<256; i++) {
178  fWidths[i] = 0;
179  fTypes[i] = ' ';
180  }
181  }
182 
183  TGFont(const TGFont &font); // not implemented
184  void operator=(const TGFont &font); // not implemented
185 
186  LayoutChunk_t *NewChunk(TGTextLayout *layout, int *maxPtr,
187  const char *start, int numChars,
188  int curX, int newX, int y) const;
189 public:
190  virtual ~TGFont();
191 
192  FontH_t GetFontHandle() const { return fFontH; }
194  FontStruct_t operator()() const;
195  void GetFontMetrics(FontMetrics_t *m) const;
197 
198  Int_t PostscriptFontName(TString *dst) const;
199  Int_t TextWidth(const char *string, Int_t numChars = -1) const;
200  Int_t XTextWidth(const char *string, Int_t numChars = -1) const;
201  Int_t TextHeight() const { return fFM.fLinespace; }
202  void UnderlineChars(Drawable_t dst, GContext_t gc,
203  const char *string, Int_t x, Int_t y,
204  Int_t firstChar, Int_t lastChar) const;
205  TGTextLayout *ComputeTextLayout(const char *string, Int_t numChars,
206  Int_t wrapLength, Int_t justify, Int_t flags,
207  UInt_t *width, UInt_t *height) const;
208  Int_t MeasureChars(const char *source, Int_t numChars, Int_t maxLength,
209  Int_t flags, Int_t *length) const;
210  void DrawCharsExp(Drawable_t dst, GContext_t gc, const char *source,
211  Int_t numChars, Int_t x, Int_t y) const;
212  void DrawChars(Drawable_t dst, GContext_t gc, const char *source,
213  Int_t numChars, Int_t x, Int_t y) const;
214 
215  void Print(Option_t *option="") const;
216  virtual void SavePrimitive(std::ostream &out, Option_t * = "");
217 
218  ClassDef(TGFont,0) // GUI font description
219 };
220 
221 
222 struct FontStateMap_t;
223 struct XLFDAttributes_t;
224 
225 
226 class TGFontPool : public TGObject {
227 
228 private:
229  THashTable *fList; // TGFont objects pool
230  THashTable *fUidTable; // Hash table for some used string values like family names, etc.
231  THashTable *fNamedTable; // Map a name to a set of attributes for a font
232 
233  TGFontPool(const TGFontPool& fp); // not implemented
234  TGFontPool& operator=(const TGFontPool& fp); // not implemented
235 
236 protected:
237  const char *GetUid(const char *string);
238  Bool_t ParseXLFD(const char *string, XLFDAttributes_t *xa);
240  int FindStateNum(const FontStateMap_t *map, const char *strKey);
241  const char *FindStateString(const FontStateMap_t *map, int numKey);
242  Bool_t FieldSpecified(const char *field);
243  TGFont *GetNativeFont(const char *name, Bool_t fixedDefault = kTRUE);
244  TGFont *MakeFont(TGFont *font, FontStruct_t fontStruct, const char *fontName);
245 
246 public:
247  TGFontPool(TGClient *client);
248  virtual ~TGFontPool();
249 
250  TGFont *GetFont(const char *font, Bool_t fixedDefault = kTRUE);
251  TGFont *GetFont(const TGFont *font);
252  TGFont *GetFont(FontStruct_t font);
253  TGFont *GetFont(const char *family, Int_t ptsize, Int_t weight, Int_t slant);
254 
255  void FreeFont(const TGFont *font);
256 
257  TGFont *FindFont(FontStruct_t font) const;
258  TGFont *FindFontByHandle(FontH_t font) const;
259 
260  char **GetAttributeInfo(const FontAttributes_t *fa);
261  void FreeAttributeInfo(char **info);
262  char **GetFontFamilies();
263  void FreeFontFamilies(char **f);
264  Bool_t ParseFontName(const char *string, FontAttributes_t *fa);
265  const char *NameOfFont(TGFont *font);
266 
267  void Print(Option_t *option="") const;
268 
269  ClassDef(TGFontPool,0) // Font pool
270 };
271 
272 #endif
TGTextLayout::fFont
const TGFont * fFont
Definition: TGFont.h:120
TGObject
Definition: TGObject.h:32
m
auto * m
Definition: textangle.C:8
TGTextLayout::DrawText
void DrawText(Drawable_t dst, GContext_t gc, Int_t x, Int_t y, Int_t firstChar, Int_t lastChar) const
Use the information in the TGTextLayout object to display a multi-line, justified string of text.
Definition: TGFont.cxx:910
TGTextLayout::TGTextLayout
TGTextLayout()
Definition: TGFont.h:130
FontAttributes_t::fFamily
const char * fFamily
Definition: TGFont.h:72
FontAttributes_t::fWeight
Int_t fWeight
Definition: TGFont.h:74
FontMetrics_t
Definition: TGFont.h:61
TGFontPool::GetNativeFont
TGFont * GetNativeFont(const char *name, Bool_t fixedDefault=kTRUE)
The return value is a pointer to an TGFont object that represents the native font.
Definition: TGFont.cxx:2554
TGFontPool::GetFont
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get the specified font.
Definition: TGFont.cxx:1545
TGFont::NewChunk
LayoutChunk_t * NewChunk(TGTextLayout *layout, int *maxPtr, const char *start, int numChars, int curX, int newX, int y) const
Helper function for ComputeTextLayout().
Definition: TGFont.cxx:1397
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TGFont::fFM
FontMetrics_t fFM
Definition: TGFont.h:157
TGTextLayout::fNumChunks
Int_t fNumChunks
Definition: TGFont.h:123
TGTextLayout::fWidth
Int_t fWidth
Definition: TGFont.h:122
f
#define f(i)
Definition: RSha256.hxx:104
TGFontPool::FieldSpecified
Bool_t FieldSpecified(const char *field)
Helper function for ParseXLFD().
Definition: TGFont.cxx:2234
TRefCnt::SetRefCount
void SetRefCount(UInt_t r)
Definition: TRefCnt.h:39
kFontWeightBold
@ kFontWeightBold
Definition: TGFont.h:46
Option_t
const char Option_t
Definition: RtypesCore.h:66
kTextPartialOK
@ kTextPartialOK
Definition: TGFont.h:38
kTextAtLeastOne
@ kTextAtLeastOne
Definition: TGFont.h:37
TGFont::fBarHeight
Int_t fBarHeight
Definition: TGFont.h:168
FontH_t
Handle_t FontH_t
Definition: GuiTypes.h:34
FontAttributes_t::fPointsize
Int_t fPointsize
Definition: TGFont.h:73
TGFont::Print
void Print(Option_t *option="") const
Print font info.
Definition: TGFont.cxx:298
TGFontPool::FindStateString
const char * FindStateString(const FontStateMap_t *map, int numKey)
Given a lookup table, map a number to a string in the table.
Definition: TGFont.cxx:2215
kTextIgnoreTabs
@ kTextIgnoreTabs
Definition: TGFont.h:39
kFontSlantRoman
@ kFontSlantRoman
Definition: TGFont.h:54
TGFont::operator=
void operator=(const TGFont &font)
TGFontPool::FreeFont
void FreeFont(const TGFont *font)
Free font. If ref count is 0 delete font.
Definition: TGFont.cxx:1705
FontStruct_t
Handle_t FontStruct_t
Definition: GuiTypes.h:38
EFontWeight
EFontWeight
Definition: TGFont.h:43
kTextWholeWords
@ kTextWholeWords
Definition: TGFont.h:36
TGFont::TGFont
TGFont(const char *name)
Definition: TGFont.h:172
TNamed.h
TGTextLayout::DistanceToText
Int_t DistanceToText(Int_t x, Int_t y) const
Computes the distance in pixels from the given point to the given text layout.
Definition: TGFont.cxx:1178
kFontWeightUnknown
@ kFontWeightUnknown
Definition: TGFont.h:50
TRefCnt.h
kFontSlantUnknown
@ kFontSlantUnknown
Definition: TGFont.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
Int_t
int Int_t
Definition: RtypesCore.h:45
TGFontPool::GetUid
const char * GetUid(const char *string)
Given a string, this procedure returns a unique identifier for the string.
Definition: TGFont.cxx:1772
TGFont::fTabWidth
Int_t fTabWidth
Definition: TGFont.h:160
TGFont::TextWidth
Int_t TextWidth(const char *string, Int_t numChars=-1) const
A wrapper function for the more complicated interface of MeasureChars.
Definition: TGFont.cxx:565
x
Double_t x[n]
Definition: legend1.C:17
TGFont::fFontStruct
FontStruct_t fFontStruct
Definition: TGFont.h:155
TGObject.h
TGFontPool::Print
void Print(Option_t *option="") const
List all fonts in the pool.
Definition: TGFont.cxx:1863
TGFontPool::ParseFontName
Bool_t ParseFontName(const char *string, FontAttributes_t *fa)
Converts a string into a set of font attributes that can be used to construct a font.
Definition: TGFont.cxx:1949
TGFont::ComputeTextLayout
TGTextLayout * ComputeTextLayout(const char *string, Int_t numChars, Int_t wrapLength, Int_t justify, Int_t flags, UInt_t *width, UInt_t *height) const
Computes the amount of screen space needed to display a multi-line, justified string of text.
Definition: TGFont.cxx:651
FontAttributes_t::fUnderline
Int_t fUnderline
Definition: TGFont.h:76
ETextLayoutFlags
ETextLayoutFlags
Definition: TGFont.h:35
TGTextLayout::UnderlineChar
void UnderlineChar(Drawable_t dst, GContext_t gc, Int_t x, Int_t y, Int_t underline) const
Use the information in the TGTextLayout object to display an underline below an individual character.
Definition: TGFont.cxx:957
TString
Basic string class.
Definition: TString.h:136
TGFontPool::~TGFontPool
virtual ~TGFontPool()
Cleanup font pool.
Definition: TGFont.cxx:1531
FontAttributes_t::FontAttributes_t
FontAttributes_t(const FontAttributes_t &f)
Definition: TGFont.h:87
FontAttributes_t::FontAttributes_t
FontAttributes_t()
Definition: TGFont.h:79
TGFont::fFontH
FontH_t fFontH
Definition: TGFont.h:156
kFontWeightBlack
@ kFontWeightBlack
Definition: TGFont.h:49
bool
FontAttributes_t::operator=
FontAttributes_t & operator=(const FontAttributes_t &f)
Definition: TGFont.h:95
TGFontPool::fUidTable
THashTable * fUidTable
Definition: TGFont.h:230
FontAttributes_t
Definition: TGFont.h:70
TGFont::GetFontMetrics
void GetFontMetrics(FontMetrics_t *m) const
Get font metrics.
Definition: TGFont.cxx:276
TGFont::MeasureChars
Int_t MeasureChars(const char *source, Int_t numChars, Int_t maxLength, Int_t flags, Int_t *length) const
Determine the number of characters from the string that will fit in the given horizontal span.
Definition: TGFont.cxx:478
TGFontPool
Definition: TGFont.h:226
TGFontPool::GetFontFamilies
char ** GetFontFamilies()
Return information about the font families that are available on the current display.
Definition: TGFont.cxx:2261
Drawable_t
Handle_t Drawable_t
Definition: GuiTypes.h:30
GContext_t
Handle_t GContext_t
Definition: GuiTypes.h:37
TObjString
Collectable string class.
Definition: TObjString.h:28
TGFontPool::FindFont
TGFont * FindFont(FontStruct_t font) const
Find font based on its font struct. Returns 0 if font is not found.
Definition: TGFont.cxx:1731
kFontWeightNormal
@ kFontWeightNormal
Definition: TGFont.h:44
kFontWeightLight
@ kFontWeightLight
Definition: TGFont.h:47
TGFont::DrawChars
void DrawChars(Drawable_t dst, GContext_t gc, const char *source, Int_t numChars, Int_t x, Int_t y) const
Perform a quick sanity check to ensure we won't overflow the X coordinate space.
Definition: TGFont.cxx:1480
FontMetrics_t::fLinespace
Int_t fLinespace
Definition: TGFont.h:64
TGFont::UnderlineChars
void UnderlineChars(Drawable_t dst, GContext_t gc, const char *string, Int_t x, Int_t y, Int_t firstChar, Int_t lastChar) const
This procedure draws an underline for a given range of characters in a given string.
Definition: TGFont.cxx:607
TGFont::fWidths
Int_t fWidths[256]
Definition: TGFont.h:167
TGFont::XTextWidth
Int_t XTextWidth(const char *string, Int_t numChars=-1) const
Return text widht in pixels.
Definition: TGFont.cxx:580
TGFontPool::operator=
TGFontPool & operator=(const TGFontPool &fp)
TGFontPool::fNamedTable
THashTable * fNamedTable
Definition: TGFont.h:231
TGFontPool::NameOfFont
const char * NameOfFont(TGFont *font)
Given a font, return a textual string identifying it.
Definition: TGFont.cxx:2249
THashTable
THashTable implements a hash table to store TObject's.
Definition: THashTable.h:35
TGFont::TextHeight
Int_t TextHeight() const
Definition: TGFont.h:201
TGFont::~TGFont
virtual ~TGFont()
Delete font.
Definition: TGFont.cxx:266
h
#define h(i)
Definition: RSha256.hxx:106
TGFont::fUnderlineHeight
Int_t fUnderlineHeight
Definition: TGFont.h:163
FontAttributes_t::fSlant
Int_t fSlant
Definition: TGFont.h:75
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TGFontPool::FindFontByHandle
TGFont * FindFontByHandle(FontH_t font) const
Find font based on its font handle. Returns 0 if font is not found.
Definition: TGFont.cxx:1748
TGFontPool::FindStateNum
int FindStateNum(const FontStateMap_t *map, const char *strKey)
Given a lookup table, map a string to a number in the table.
Definition: TGFont.cxx:2192
TGFont::GetFontHandle
FontH_t GetFontHandle() const
Definition: TGFont.h:192
TGFont::PostscriptFontName
Int_t PostscriptFontName(TString *dst) const
Return the name of the corresponding Postscript font for this TGFont.
Definition: TGFont.cxx:333
TGTextLayout
Definition: TGFont.h:115
TGTextLayout::ToPostscript
void ToPostscript(TString *dst) const
Outputs the contents of a text layout in Postscript format.
Definition: TGFont.cxx:1321
TGTextLayout::CharBbox
Int_t CharBbox(Int_t index, Int_t *x, Int_t *y, Int_t *w, Int_t *h) const
Use the information in the TGTextLayout token to return the bounding box for the character specified ...
Definition: TGFont.cxx:1096
TGFont::DrawCharsExp
void DrawCharsExp(Drawable_t dst, GContext_t gc, const char *source, Int_t numChars, Int_t x, Int_t y) const
Draw a string of characters on the screen.
Definition: TGFont.cxx:1450
BIT
#define BIT(n)
Definition: Rtypes.h:85
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
y
Double_t y[n]
Definition: legend1.C:17
FontAttributes_t::fOverstrike
Int_t fOverstrike
Definition: TGFont.h:77
TGFontPool::FreeAttributeInfo
void FreeAttributeInfo(char **info)
Free attributes info.
Definition: TGFont.cxx:1846
kFontWeightDemibold
@ kFontWeightDemibold
Definition: TGFont.h:48
TGFont::fUnderlinePos
Int_t fUnderlinePos
Definition: TGFont.h:161
kFontWeightMedium
@ kFontWeightMedium
Definition: TGFont.h:45
TGFontPool::fList
THashTable * fList
Definition: TGFont.h:229
kTextIgnoreNewlines
@ kTextIgnoreNewlines
Definition: TGFont.h:40
FontMetrics_t::fFixed
Bool_t fFixed
Definition: TGFont.h:66
TGTextLayout::fChunks
LayoutChunk_t * fChunks
Definition: TGFont.h:124
kFontSlantItalic
@ kFontSlantItalic
Definition: TGFont.h:55
FontMetrics_t::fMaxWidth
Int_t fMaxWidth
Definition: TGFont.h:65
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
TGFontPool::MakeFont
TGFont * MakeFont(TGFont *font, FontStruct_t fontStruct, const char *fontName)
Helper for GetNativeFont() and GetFontFromAttributes().
Definition: TGFont.cxx:2579
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
EFontSlant
EFontSlant
Definition: TGFont.h:53
TGFontPool::FreeFontFamilies
void FreeFontFamilies(char **f)
Delete an array of families allocated GetFontFamilies() method.
Definition: TGFont.cxx:2320
name
char name[80]
Definition: TGX11.cxx:110
TGTextLayout::PointToChar
Int_t PointToChar(Int_t x, Int_t y) const
Use the information in the TGTextLayout token to determine the character closest to the given point.
Definition: TGFont.cxx:990
TGTextLayout::TGTextLayout
TGTextLayout(const TGTextLayout &tlayout)
TGFont::fNamedHash
TObjString * fNamedHash
Definition: TGFont.h:159
TGTextLayout::fString
const char * fString
Definition: TGFont.h:121
TGFont::fTypes
char fTypes[256]
Definition: TGFont.h:165
TRefCnt
Definitions for TRefCnt, base class for reference counted objects.
Definition: TRefCnt.h:27
TGFont::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save the used font as a C++ statement(s) on output stream out.
Definition: TGFont.cxx:1871
TGTextLayout::~TGTextLayout
virtual ~TGTextLayout()
destructor
Definition: TGFont.cxx:887
TGFont::GetFontAttributes
FontAttributes_t GetFontAttributes() const
Definition: TGFont.h:196
TGFont::GetFontStruct
FontStruct_t GetFontStruct() const
Definition: TGFont.h:193
TGFontPool::TGFontPool
TGFontPool(const TGFontPool &fp)
FontMetrics_t::fAscent
Int_t fAscent
Definition: TGFont.h:62
TGTextLayout::IntersectText
Int_t IntersectText(Int_t x, Int_t y, Int_t w, Int_t h) const
Determines whether a text layout lies entirely inside, entirely outside, or overlaps a given rectangl...
Definition: TGFont.cxx:1244
FontMetrics_t::fDescent
Int_t fDescent
Definition: TGFont.h:63
TGFont
Definition: TGFont.h:149
TGFontPool::GetAttributeInfo
char ** GetAttributeInfo(const FontAttributes_t *fa)
Return information about the font attributes as an array of strings.
Definition: TGFont.cxx:1792
kFontSlantOblique
@ kFontSlantOblique
Definition: TGFont.h:56
TGFontPool::ParseXLFD
Bool_t ParseXLFD(const char *string, XLFDAttributes_t *xa)
Break up a fully specified XLFD into a set of font attributes.
Definition: TGFont.cxx:2041
TGClient
Definition: TGClient.h:46
TGFontPool::GetFontFromAttributes
TGFont * GetFontFromAttributes(FontAttributes_t *fa, TGFont *fontPtr)
Given a desired set of attributes for a font, find a font with the closest matching attributes and cr...
Definition: TGFont.cxx:2343
TGTextLayout::operator=
void operator=(const TGTextLayout &tlayout)
TGFont::TGFont
TGFont(const TGFont &font)
TGFont::fFA
FontAttributes_t fFA
Definition: TGFont.h:158
int
TGFont::operator()
FontStruct_t operator()() const
Not inline due to a bug in g++ 2.96 20000731 (Red Hat Linux 7.0)
Definition: TGFont.cxx:290