VirtualBox

Changeset 54077 in vbox


Ignore:
Timestamp:
Feb 5, 2015 5:58:41 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98031
Message:

FE/Qt: Mac OS X: Font substitution fix for Yosemite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r53481 r54077  
    348348
    349349#ifdef Q_WS_MAC
    350         /* Mavericks font fix: */
    351         if (VBoxGlobal::osRelease() >= MacOSXRelease_Mavericks)
    352             QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");
     350        /* Font fixes: */
     351        switch (VBoxGlobal::osRelease())
     352        {
     353            case MacOSXRelease_Mavericks: QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande"); break;
     354            case MacOSXRelease_Yosemite:  QFont::insertSubstitution(".Helvetica Neue DeskInterface", "Helvetica Neue"); break;
     355            default: break;
     356        }
    353357# ifdef QT_MAC_USE_COCOA
    354358        /* Instantiate our NSApplication derivative before QApplication
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette