1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/font.h
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
36 wxFont(const wxString
& fontname
)
41 wxFont(const wxNativeFontInfo
& info
);
47 bool underlined
= false,
48 const wxString
& face
= wxEmptyString
,
49 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
51 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
58 bool underlined
= false,
59 const wxString
& face
= wxEmptyString
,
60 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
63 bool Create(const wxString
& fontname
);
67 // implement base class pure virtuals
68 virtual int GetPointSize() const;
69 virtual int GetFamily() const;
70 virtual int GetStyle() const;
71 virtual int GetWeight() const;
72 virtual wxString
GetFaceName() const;
73 virtual bool GetUnderlined() const;
74 virtual wxFontEncoding
GetEncoding() const;
75 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
76 virtual bool IsFixedWidth() const;
78 virtual void SetPointSize( int pointSize
);
79 virtual void SetFamily( int family
);
80 virtual void SetStyle( int style
);
81 virtual void SetWeight( int weight
);
82 virtual void SetFaceName( const wxString
& faceName
);
83 virtual void SetUnderlined( bool underlined
);
84 virtual void SetEncoding(wxFontEncoding encoding
);
86 virtual void SetNoAntiAliasing( bool no
= true );
87 virtual bool GetNoAntiAliasing() const ;
89 // implementation from now on
92 GdkFont
* GetInternalFont(float scale
= 1.0) const;
97 virtual void DoSetNativeFontInfo( const wxNativeFontInfo
& info
);
100 DECLARE_DYNAMIC_CLASS(wxFont
)
103 #endif // __GTKFONTH__