git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22761
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // reinitilize the font with the gived XFLD
+ void ReInit(const wxString& fontname);
+
// setters: all of them also take care to modify m_nativeFontInfo if we
// have it so as to not lose the information not carried by our fields
void SetPointSize(int pointSize);
// setters: all of them also take care to modify m_nativeFontInfo if we
// have it so as to not lose the information not carried by our fields
void SetPointSize(int pointSize);
+void wxFontRefData::ReInit(const wxString& fontname)
+{
+ m_nativeFontInfo.SetXFontName(fontname);
+
+ InitFromNative();
+}
+
void wxFontRefData::ClearGdkFonts()
{
#ifndef __WXGTK20__
void wxFontRefData::ClearGdkFonts()
{
#ifndef __WXGTK20__
&xfontname);
if ( font )
{
&xfontname);
if ( font )
{
- M_FONTDATA->m_nativeFontInfo.SetXFontName(xfontname);
+ M_FONTDATA->m_nativeFontInfo.ReInit(xfontname);
+ // reinitilize the font with the gived XFLD
+ void ReInit(const wxString& fontname);
+
// setters: all of them also take care to modify m_nativeFontInfo if we
// have it so as to not lose the information not carried by our fields
void SetPointSize(int pointSize);
// setters: all of them also take care to modify m_nativeFontInfo if we
// have it so as to not lose the information not carried by our fields
void SetPointSize(int pointSize);
+void wxFontRefData::ReInit(const wxString& fontname)
+{
+ m_nativeFontInfo.SetXFontName(fontname);
+
+ InitFromNative();
+}
+
void wxFontRefData::ClearGdkFonts()
{
#ifndef __WXGTK20__
void wxFontRefData::ClearGdkFonts()
{
#ifndef __WXGTK20__
&xfontname);
if ( font )
{
&xfontname);
if ( font )
{
- M_FONTDATA->m_nativeFontInfo.SetXFontName(xfontname);
+ M_FONTDATA->m_nativeFontInfo.ReInit(xfontname);