- Fixed atsuSize = IntToFixed( m_macFontSize ) ;
-
- Style atsuStyle = normal ;
- verify_noerr(::ATSUFONDtoFontID(m_macFontNum, atsuStyle , (UInt32*)&m_macATSUFontID) );
- if ( m_macFontStyle & bold )
- {
- ATSUFontID test ;
- if ( ::ATSUFONDtoFontID(m_macFontNum, atsuStyle | bold , &test) == noErr )
- {
- atsuStyle |= bold ;
- m_macATSUFontID = test ;
- }
- }
-
- if ( m_macFontStyle & italic )
- {
- ATSUFontID test ;
- if ( ::ATSUFONDtoFontID(m_macFontNum, atsuStyle | italic , &test) == noErr )
- {
- atsuStyle |= italic ;
- m_macATSUFontID = test ;
- }
- }
-
- if ( m_macFontStyle & underline )
- {
- ATSUFontID test ;
- if ( ::ATSUFONDtoFontID(m_macFontNum, atsuStyle | underline , &test) == noErr )
- {
- atsuStyle |= underline ;
- m_macATSUFontID = test ;
- }
- }