summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8b7b1a5)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60150
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info);
+
virtual wxGDIRefData *CreateGDIRefData() const;
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
virtual wxGDIRefData *CreateGDIRefData() const;
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
+void wxFont::DoSetNativeFontInfo(const wxNativeFontInfo& info)
+{
+ UnRef();
+
+ m_refData = new wxFontRefData( info);
+}
+
+
bool wxFont::RealizeResource()
{
M_FONTDATA->MacFindFont();
bool wxFont::RealizeResource()
{
M_FONTDATA->MacFindFont();
m_weight = wxFONTWEIGHT_NORMAL;
m_underlined = false;
m_faceName.clear();
m_weight = wxFONTWEIGHT_NORMAL;
m_underlined = false;
m_faceName.clear();
- m_encoding = wxFONTENCODING_DEFAULT;
+ m_encoding = wxFont::GetDefaultEncoding();
m_descriptorValid = false;
}
m_descriptorValid = false;
}
m_weight = weight;
m_underlined = underlined;
m_faceName = faceName;
m_weight = weight;
m_underlined = underlined;
m_faceName = faceName;
+ if ( encoding == wxFONTENCODING_DEFAULT )
+ encoding = wxFont::GetDefaultEncoding();
void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding_)
{
void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding_)
{
+ if ( encoding_ == wxFONTENCODING_DEFAULT )
+ encoding_ = wxFont::GetDefaultEncoding();
m_encoding = encoding_;
// not reflected in native descriptors
}
\ No newline at end of file
m_encoding = encoding_;
// not reflected in native descriptors
}
\ No newline at end of file