Changeset 769 for trunk/src/gui/text/qfontdatabase_win.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qfontdatabase_win.cpp
r651 r769 337 337 }; 338 338 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 } 341 351 } else if (!family->writingSystemCheck) { 342 352 //qDebug("family='%s' script=%s", family->name.latin1(), script.latin1());
Note:
See TracChangeset
for help on using the changeset viewer.