X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..409e38cd653526e81b4d7fc63c0d68d4c1258809:/include/wx/x11/font.h diff --git a/include/wx/x11/font.h b/include/wx/x11/font.h index f75bf6c423..83bf79c412 100644 --- a/include/wx/x11/font.h +++ b/include/wx/x11/font.h @@ -48,11 +48,15 @@ public: bool underlined = FALSE, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); - - // wxMOTIF-specific + + // FIXME: I added the ! to make it compile; + // is this right? - JACS +#if !wxUSE_UNICODE bool Create(const wxString& fontname, wxFontEncoding fontenc = wxFONTENCODING_DEFAULT); - bool Create(const wxNativeFontInfo& fontinfo); +#endif + // DELETEME: no longer seems to be implemented. + // bool Create(const wxNativeFontInfo& fontinfo); virtual ~wxFont(); @@ -69,6 +73,8 @@ public: virtual wxFontEncoding GetEncoding() const; virtual wxNativeFontInfo *GetNativeFontInfo() const; + virtual bool IsFixedWidth() const; + virtual void SetPointSize(int pointSize); virtual void SetFamily(int family); virtual void SetStyle(int style); @@ -78,8 +84,13 @@ public: virtual void SetEncoding(wxFontEncoding encoding); virtual void SetNativeFontInfo( const wxNativeFontInfo& info ); - // Implementation + virtual void SetNoAntiAliasing( bool no = TRUE ); + virtual bool GetNoAntiAliasing(); + // Implementation + +#if wxUSE_PANGO +#else // Find an existing, or create a new, XFontStruct // based on this wxFont and the given scale. Append the // font to list in the private data for future reference. @@ -95,18 +106,15 @@ public: wxXFont *GetInternalFont(double scale = 1.0, WXDisplay* display = NULL) const; - // These two are helper functions for convenient access of the above. + // Helper function for convenient access of the above. WXFontStructPtr GetFontStruct(double scale = 1.0, WXDisplay* display = NULL) const; - WXFontList GetFontList(double scale = 1.0, - WXDisplay* display = NULL) const; +#endif protected: // common part of all ctors void Init(); - // VZ: IMHO, we don't need it at all... - bool RealizeResource() { return TRUE; } void Unshare(); private: