using QD Text under non OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7759d157ea
commit
54ddeb7e1b
@ -118,12 +118,19 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
||||
} ;
|
||||
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
||||
#if TARGET_CARBON
|
||||
#if 0 // TARGET_CARBON
|
||||
--noOfFontDescriptions ;
|
||||
#endif
|
||||
// kTXNAlwaysUseQuickDrawTextMask might be desirable because of speed increases but it crashes the app under OS X upon key stroke
|
||||
TXNInitTextension(fontDescriptions, noOfFontDescriptions, ( kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
|
||||
}
|
||||
OptionBits options = kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask ;
|
||||
#if TARGET_CARBON
|
||||
if ( !UMAHasAquaLayout() )
|
||||
#endif
|
||||
{
|
||||
options |= kTXNAlwaysUseQuickDrawTextMask ;
|
||||
}
|
||||
TXNInitTextension(fontDescriptions, noOfFontDescriptions, options );
|
||||
}
|
||||
|
||||
long menuMgrAttr ;
|
||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||
|
@ -118,12 +118,19 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
||||
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
||||
} ;
|
||||
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
||||
#if TARGET_CARBON
|
||||
#if 0 // TARGET_CARBON
|
||||
--noOfFontDescriptions ;
|
||||
#endif
|
||||
// kTXNAlwaysUseQuickDrawTextMask might be desirable because of speed increases but it crashes the app under OS X upon key stroke
|
||||
TXNInitTextension(fontDescriptions, noOfFontDescriptions, ( kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask));
|
||||
}
|
||||
OptionBits options = kTXNWantMoviesMask | kTXNWantSoundMask | kTXNWantGraphicsMask ;
|
||||
#if TARGET_CARBON
|
||||
if ( !UMAHasAquaLayout() )
|
||||
#endif
|
||||
{
|
||||
options |= kTXNAlwaysUseQuickDrawTextMask ;
|
||||
}
|
||||
TXNInitTextension(fontDescriptions, noOfFontDescriptions, options );
|
||||
}
|
||||
|
||||
long menuMgrAttr ;
|
||||
Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
|
||||
|
Loading…
Reference in New Issue
Block a user