1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxDC
;
20 class WXDLLIMPEXP_CORE wxPaintDC
;
21 class WXDLLIMPEXP_CORE wxWindow
;
23 class WXDLLIMPEXP_CORE wxFont
;
25 // ----------------------------------------------------------------------------
27 // ----------------------------------------------------------------------------
29 class WXDLLIMPEXP_CORE wxFont
: public wxFontBase
35 wxFont(const wxString
& fontname
)
40 wxFont(const wxNativeFontInfo
& info
);
46 bool underlined
= false,
47 const wxString
& face
= wxEmptyString
,
48 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
50 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
57 bool underlined
= false,
58 const wxString
& face
= wxEmptyString
,
59 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
62 bool Create(const wxString
& fontname
);
66 // implement base class pure virtuals
67 virtual int GetPointSize() const;
68 virtual int GetFamily() const;
69 virtual int GetStyle() const;
70 virtual int GetWeight() const;
71 virtual wxString
GetFaceName() const;
72 virtual bool GetUnderlined() const;
73 virtual wxFontEncoding
GetEncoding() const;
74 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
75 virtual bool IsFixedWidth() const;
77 virtual void SetPointSize( int pointSize
);
78 virtual void SetFamily( int family
);
79 virtual void SetStyle( int style
);
80 virtual void SetWeight( int weight
);
81 virtual bool SetFaceName( const wxString
& faceName
);
82 virtual void SetUnderlined( bool underlined
);
83 virtual void SetEncoding(wxFontEncoding encoding
);
85 virtual void SetNoAntiAliasing( bool no
= true );
86 virtual bool GetNoAntiAliasing() const ;
88 // implementation from now on
94 virtual void DoSetNativeFontInfo( const wxNativeFontInfo
& info
);
96 // common part of all ctors
100 DECLARE_DYNAMIC_CLASS(wxFont
)
103 #endif // __GTKFONTH__