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:
@@ -118,11 +118,18 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
||||||
} ;
|
} ;
|
||||||
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
||||||
#if TARGET_CARBON
|
#if 0 // TARGET_CARBON
|
||||||
--noOfFontDescriptions ;
|
--noOfFontDescriptions ;
|
||||||
#endif
|
#endif
|
||||||
// kTXNAlwaysUseQuickDrawTextMask might be desirable because of speed increases but it crashes the app under OS X upon key stroke
|
// 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 ;
|
long menuMgrAttr ;
|
||||||
|
@@ -118,11 +118,18 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
|
|||||||
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
{ fontId , (fontSize << 16) ,kTXNDefaultFontStyle, kTXNSystemDefaultEncoding } ,
|
||||||
} ;
|
} ;
|
||||||
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
int noOfFontDescriptions = sizeof( fontDescriptions ) / sizeof(TXNMacOSPreferredFontDescription) ;
|
||||||
#if TARGET_CARBON
|
#if 0 // TARGET_CARBON
|
||||||
--noOfFontDescriptions ;
|
--noOfFontDescriptions ;
|
||||||
#endif
|
#endif
|
||||||
// kTXNAlwaysUseQuickDrawTextMask might be desirable because of speed increases but it crashes the app under OS X upon key stroke
|
// 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 ;
|
long menuMgrAttr ;
|
||||||
|
Reference in New Issue
Block a user