Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/text/qfontdatabase_win.cpp

    r651 r769  
    337337            };
    338338            QList<QFontDatabase::WritingSystem> systems = determineWritingSystemsFromTrueTypeBits(unicodeRange, codePageRange);
    339             for (int i = 0; i < systems.count(); ++i)
    340                 family->writingSystems[systems.at(i)] = QtFontFamily::Supported;
     339
     340            for (int i = 0; i < systems.count(); ++i) {
     341                QFontDatabase::WritingSystem writingSystem = systems.at(i);
     342
     343                // ### Hack to work around problem with Thai text on Windows 7. Segoe UI contains
     344                // the symbol for Baht, and Windows thus reports that it supports the Thai script.
     345                // Since it's the default UI font on this platform, most widgets will be unable to
     346                // display Thai text by default. As a temporary work around, we special case Segoe UI
     347                // and remove the Thai script from its list of supported writing systems.
     348                if (writingSystem != QFontDatabase::Thai || familyName != QLatin1String("Segoe UI"))
     349                    family->writingSystems[writingSystem] = QtFontFamily::Supported;
     350            }
    341351        } else if (!family->writingSystemCheck) {
    342352            //qDebug("family='%s' script=%s", family->name.latin1(), script.latin1());
Note: See TracChangeset for help on using the changeset viewer.