VirtualBox

Ignore:
Timestamp:
Oct 23, 2008 5:53:24 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38402
Message:

FE/Qt4: 3217: "Font substitution fix not always works". This fix was #ifndef-ed for Solaris for now. Looks like there is anti-aliasing switched off for Solaris.

File:
1 edited

Legend:

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

    r13537 r13545  
    241241
    242242#ifdef Q_WS_X11
     243        /* This patch is not used for now on Solaris & OpenSolaris because
     244         * there is no anti-aliasing enabled by default, Qt4 to be rebuilt. */
     245#ifndef Q_OS_SOLARIS
    243246        /* Cause Qt4 has the conflict with fontconfig application as a result
    244247         * sometimes substituting some fonts with non scaleable-anti-aliased
     
    249252        QString currentFamily (QApplication::font().family());
    250253        bool isCurrentScaleable = fontDataBase.isScalable (currentFamily);
    251         printf ("Font: Current family is '%s'. It is %s.\n",
     254
     255        /*
     256        LogFlowFunc (("Font: Current family is '%s'. It is %s.\n",
    252257            currentFamily.toLatin1().constData(),
    253             isCurrentScaleable ? "scalable" : "not scalable");
    254 
     258            isCurrentScaleable ? "scalable" : "not scalable"));
    255259        QStringList subFamilies (QFont::substitutes (currentFamily));
    256260        foreach (QString sub, subFamilies)
    257261        {
    258262            bool isSubScalable = fontDataBase.isScalable (sub);
    259             printf ("Font: Substitute family is '%s'. It is %s.\n",
     263            LogFlowFunc (("Font: Substitute family is '%s'. It is %s.\n",
    260264                sub.toLatin1().constData(),
    261                 isSubScalable ? "scalable" : "not scalable");
     265                isSubScalable ? "scalable" : "not scalable"));
    262266        }
     267        */
    263268
    264269        QString subFamily (QFont::substitute (currentFamily));
    265270        bool isSubScaleable = fontDataBase.isScalable (subFamily);
     271
    266272        if (isCurrentScaleable && !isSubScaleable)
    267273            QFont::removeSubstitution (currentFamily);
     274#endif /* Q_OS_SOLARIS */
    268275#endif
    269276
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