library: libGui #include "TGFont.h"

# TGFont

class description - source file - inheritance tree (.pdf)

## class TGFont : public TNamed, public TRefCnt

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`TRefCnt`
| <- | `TGFont` |

        protected:

                 TGFont(const char* name)
                 TGFont(const TGFont& font)
            void operator=(const TGFont& rhs)

        public:

                  virtual ~TGFont()
           static TClass* Class()
                  FontH_t GetFontHandle() const
                     void GetFontMetrics(FontMetrics_t* m) const
             FontStruct_t GetFontStruct() const
          virtual TClass* IsA() const
             FontStruct_t operator()() const
             virtual void Print(Option_t* option = "") const
             virtual void SavePrimitive(ofstream& out, Option_t*)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

           FontStruct_t fFontStruct  low level graphics fontstruct
                FontH_t fFontH       font handle (derived from fontstruct)
          FontMetrics_t fFM          cached font metrics

## Class Description

     TGFont and TGFontPool

     Encapsulate fonts used in the GUI system.
     TGFontPool provides a pool of fonts.

~TGFont()

     Delete font.

void GetFontMetrics(FontMetrics_t *m) const

     Get font metrics.

void Print(Option_t *) const

     Print font info.

void SavePrimitive(ofstream &out, Option_t *)

     Save the used font as a C++ statement(s) on output stream out

### Inline Functions

                  TGFont TGFont(const char* name)
                  TGFont TGFont(const TGFont& font)
                    void operator=(const TGFont& rhs)
                 FontH_t GetFontHandle() const
            FontStruct_t GetFontStruct() const
            FontStruct_t operator()() const
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)

Author: Fons Rademakers 20/5/2003
Last update: root/gui:$Name: $:$Id: TGFont.cxx,v 1.4 2004/09/07 08:13:56 brun Exp $
Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *