// Author: Vadim Zeitlin
// Modified by:
// Created: 05.11.99
-// RCS-ID: $Id$
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
public:
#if wxUSE_PANGO
PangoFontDescription *description;
+
+ // Pango font description doesn't have these attributes, so we store them
+ // separately and handle them ourselves in {To,From}String() methods.
+ bool m_underlined;
+ bool m_strikethrough;
#elif defined(_WX_X_FONTLIKE)
// the members can't be accessed directly as we only parse the
// xFontName on demand
void Free();
void EnsureValid();
-
+
bool m_descriptorValid;
-#if wxOSX_USE_CORE_TEXT
- CTFontDescriptorRef m_ctFontDescriptor;
-#endif
#if wxOSX_USE_ATSU_TEXT
bool m_atsuFontValid;
wxInt16 m_qdFontFamily;
wxInt16 m_qdFontStyle;
#endif
-#endif
-
-#if wxOSX_USE_COCOA
- WX_NSFontDescriptor m_nsFontDescriptor;
- void ValidateNSFontDescriptor();
-#endif
-#if wxOSX_USE_IPHONE
#endif
int m_pointSize;
wxFontStyle m_style;
wxFontWeight m_weight;
bool m_underlined;
+ bool m_strikethrough;
wxString m_faceName;
wxFontEncoding m_encoding;
public :
wxFontStyle style;
wxFontWeight weight;
bool underlined;
+ bool strikethrough;
wxString faceName;
wxFontEncoding encoding;
#endif // platforms
SetStyle((wxFontStyle)font.GetStyle());
SetWeight((wxFontWeight)font.GetWeight());
SetUnderlined(font.GetUnderlined());
+ SetStrikethrough(font.GetStrikethrough());
#if defined(__WXMSW__)
if ( font.IsUsingSizeInPixels() )
SetPixelSize(font.GetPixelSize());
wxFontStyle GetStyle() const;
wxFontWeight GetWeight() const;
bool GetUnderlined() const;
+ bool GetStrikethrough() const;
wxString GetFaceName() const;
wxFontFamily GetFamily() const;
wxFontEncoding GetEncoding() const;
void SetStyle(wxFontStyle style);
void SetWeight(wxFontWeight weight);
void SetUnderlined(bool underlined);
+ void SetStrikethrough(bool strikethrough);
bool SetFaceName(const wxString& facename);
void SetFamily(wxFontFamily family);
void SetEncoding(wxFontEncoding encoding);