Changeset 238 for trunk/src/gui/text


Ignore:
Timestamp:
Oct 16, 2009, 10:46:02 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Temporarily substitute the "WarpSans" font with "Workplace Sans" until we support OS/2 bitmap fonts (to get more native look and feel if "Workplace Sans" is installed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/text/qfontdatabase_pm.cpp

    r234 r238  
    296296                        cached.styleKey.weight = QFont::Black;
    297297
     298
     299
     300
     301
     302
     303
     304
     305
     306
     307
     308
    298309                    switch (os2_table->usWidthClass) {
    299310                        case 1: cached.styleKey.stretch = QFont::UltraCondensed; break;
     
    401412                //
    402413                // @todo find a proper way to detect actual supported scripts to make
    403                 // sure these fonts are not matched for scripts they don't support
     414                // sure these fonts are not matched for scripts they don't support.
     415                //
     416                // @todo remove the hack for "Workplace Sans" once it is corrected
    404417                for (int ws = 0; ws < QFontDatabase::WritingSystemsCount; ++ws)
    405418                    family->writingSystems[ws] = QtFontFamily::Supported;
     
    642655        req.stretch = 100;
    643656
     657
     658
     659
     660
     661
    644662    QFontCache::Key key(req, d->rawMode ? QUnicodeTables::Common : script, d->screen);
    645663    if (!d->engineData)
Note: See TracChangeset for help on using the changeset viewer.