- int nFamily;
- int nPointSize;
- int nStyle;
- int nWeight;
- bool bUnderlined;
- wxString sFaceName;
- wxNativeFontInfo* pInfo;
-
- nFamily = vChosenFont.GetFamily();
- nPointSize = vChosenFont.GetPointSize();
- nStyle = vChosenFont.GetStyle();
- nWeight = vChosenFont.GetWeight();
- bUnderlined = vChosenFont.GetUnderlined();
- sFaceName = vChosenFont.GetFaceName();
- pInfo = vChosenFont.GetNativeFontInfo();
-
-
- m_fontData.chosenFont = vChosenFont;
-
- nFamily = m_fontData.chosenFont.GetFamily();
- nPointSize = m_fontData.chosenFont.GetPointSize();
- nStyle = m_fontData.chosenFont.GetStyle();
- nWeight = m_fontData.chosenFont.GetWeight();
- bUnderlined = m_fontData.chosenFont.GetUnderlined();
- sFaceName = m_fontData.chosenFont.GetFaceName();
- pInfo = m_fontData.chosenFont.GetNativeFontInfo();
-
- m_fontData.EncodingInfo().facename = vFontDlg.fAttrs.szFacename;
+
+ int nPointSize = vFontDlg.fxPointSize >> 16;
+
+ vChosenFont.SetPointSize(nPointSize);
+ m_fontData.m_chosenFont = vChosenFont;
+
+ m_fontData.EncodingInfo().facename = (wxChar*)vFontDlg.fAttrs.szFacename;