fix facename
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,7 +103,7 @@ pascal OSStatus wxFontDialogEventHandler( EventHandlerCallRef inHandlerCallRef,
|
|||||||
&theScriptCode,
|
&theScriptCode,
|
||||||
&theLanguageCode);
|
&theLanguageCode);
|
||||||
|
|
||||||
Ptr szBuffer = new wxChar[theActualLength];
|
Ptr szBuffer = NewPtr(theActualLength);
|
||||||
ATSUGetIndFontName(fontid,
|
ATSUGetIndFontName(fontid,
|
||||||
0, //first font in index array
|
0, //first font in index array
|
||||||
theActualLength,
|
theActualLength,
|
||||||
@@ -115,8 +115,8 @@ pascal OSStatus wxFontDialogEventHandler( EventHandlerCallRef inHandlerCallRef,
|
|||||||
&theLanguageCode);
|
&theLanguageCode);
|
||||||
|
|
||||||
//its unicode - convert it to wx's char value and put it in there
|
//its unicode - convert it to wx's char value and put it in there
|
||||||
theFont.SetFaceName(wxConvLocal.cWC2WX((wchar_t*)szBuffer));
|
theFont.SetFaceName(wxConvLocal.cMB2WX((char*)szBuffer));
|
||||||
delete[] szBuffer;
|
DisposePtr(szBuffer);
|
||||||
|
|
||||||
//TODOTODO: Get font family - mayby by the script code?
|
//TODOTODO: Get font family - mayby by the script code?
|
||||||
theFont.SetFamily(wxDEFAULT);
|
theFont.SetFamily(wxDEFAULT);
|
||||||
|
Reference in New Issue
Block a user