adding font fallbacks for non existing glyphs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1343,6 +1343,10 @@ void wxDC::DoDrawRotatedText(const wxString& str, wxCoord x, wxCoord y,
|
|||||||
&chars , (ATSUStyle*) &m_macATSUIStyle , &atsuLayout ) ;
|
&chars , (ATSUStyle*) &m_macATSUIStyle , &atsuLayout ) ;
|
||||||
|
|
||||||
wxASSERT_MSG( status == noErr , wxT("couldn't create the layout of the rotated text") );
|
wxASSERT_MSG( status == noErr , wxT("couldn't create the layout of the rotated text") );
|
||||||
|
|
||||||
|
status = ::ATSUSetTransientFontMatching( atsuLayout , true ) ;
|
||||||
|
wxASSERT_MSG( status == noErr , wxT("couldn't setup transient font matching") );
|
||||||
|
|
||||||
int iAngle = int( angle );
|
int iAngle = int( angle );
|
||||||
int drawX = XLOG2DEVMAC(x) ;
|
int drawX = XLOG2DEVMAC(x) ;
|
||||||
int drawY = YLOG2DEVMAC(y) ;
|
int drawY = YLOG2DEVMAC(y) ;
|
||||||
|
@@ -1325,10 +1325,11 @@ void wxDC::DoDrawRotatedText(const wxString& str, wxCoord x, wxCoord y,
|
|||||||
&chars , (ATSUStyle*) &m_macATSUIStyle , &atsuLayout ) ;
|
&chars , (ATSUStyle*) &m_macATSUIStyle , &atsuLayout ) ;
|
||||||
|
|
||||||
wxASSERT_MSG( status == noErr , wxT("couldn't create the layout of the rotated text") );
|
wxASSERT_MSG( status == noErr , wxT("couldn't create the layout of the rotated text") );
|
||||||
|
|
||||||
|
status = ::ATSUSetTransientFontMatching( atsuLayout , true ) ;
|
||||||
|
wxASSERT_MSG( status == noErr , wxT("couldn't setup transient font matching") );
|
||||||
|
|
||||||
int iAngle = int( angle );
|
int iAngle = int( angle );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ( abs(iAngle) > 0 )
|
if ( abs(iAngle) > 0 )
|
||||||
{
|
{
|
||||||
Fixed atsuAngle = IntToFixed( iAngle ) ;
|
Fixed atsuAngle = IntToFixed( iAngle ) ;
|
||||||
|
Reference in New Issue
Block a user