Changeset 11847:2623f250950d in orange


Ignore:
Timestamp:
01/27/14 10:41:20 (3 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

A temporary fix for QTBUG-32789 (wrong system font on OSX-Mavericks).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/main.py

    r11702 r11847  
    4343    except NameError: 
    4444        return False 
     45 
     46 
     47def fix_osx_10_9_private_font(): 
     48    """Temporary fix for QTBUG-32789.""" 
     49    from PyQt4.QtCore import QSysInfo 
     50    if sys.platform == "darwin": 
     51        try: 
     52            if QSysInfo.MacintoshVersion > QSysInfo.MV_10_8: 
     53                QFont.insertSubstitution(".Lucida Grande UI", "Lucida Grande") 
     54        except AttributeError: 
     55            pass 
    4556 
    4657 
     
    109120    # and write to the old file descriptors) 
    110121    fix_win_pythonw_std_stream() 
     122 
     123    # Try to fix fonts on OSX Mavericks 
     124    fix_osx_10_9_private_font() 
    111125 
    112126    # File handler should always be at least INFO level so we need 
Note: See TracChangeset for help on using the changeset viewer.