Ticket #12186: wxWidgets-carbonfont.diff

File wxWidgets-carbonfont.diff, 703 bytes (added by gmeeker, 11 years ago)
  • src/osx/carbon/font.cpp

     
    477477            traits |= kCTFontItalicTrait;
    478478
    479479        // use font caching
    480         wxString lookupnameWithSize = wxString::Format( "%s_%ld_%ld", m_info.m_faceName.c_str(), traits, m_info.m_pointSize );
     480        wxString lookupnameWithSize = wxString::Format( "%s_%ld_%ld", m_info.m_faceName.c_str(), (long)traits, (long)m_info.m_pointSize );
    481481
    482482        static std::map< std::wstring , wxCFRef< CTFontRef > > fontcache ;
    483483        m_ctFont = fontcache[ std::wstring(lookupnameWithSize.wc_str()) ];