- Timestamp:
- Oct 15, 2009, 12:39:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/text/qfontdatabase_pm.cpp
r226 r227 195 195 family->fixedPitch = face->face_flags & FT_FACE_FLAG_FIXED_WIDTH; 196 196 197 if (systems.isEmpty() ) {197 if (systems.isEmpty() || familyName == "Workplace Sans") { 198 198 // it was hard or impossible to determine the actual writing system 199 199 // of the font (as in case of OS/2 bitmap and PFB fonts for which it is 200 200 // usually simply reported that they support standard/system codepages). 201 201 // Pretend that we support all writing systems to not miss the one. 202 // @todo find a way to detect it properly to make sure these fonts 203 // are not matched for scripts they don't support 202 // Note that "Workplace Sans" TTF by Alex Taylor doesn't provide correct 203 // unicode and codepage ranges in os2_table for some reason but versions 204 // 0.4 and earlier are known to support many popular scripts so hack it. 205 // 206 // @todo find a proper way to detect actual supported scripts to make 207 // sure these fonts are not matched for scripts they don't support 204 208 for (int ws = 0; ws < QFontDatabase::WritingSystemsCount; ++ws) 205 209 family->writingSystems[ws] = QtFontFamily::Supported; … … 395 399 if (!desc.family) 396 400 break; 401 FM_DEBUG("loadPM: ============== matched '%s'", qPrintable(desc.family->name)); 397 402 fe = loadEngine(req, desc); 398 403 if (!fe)
Note:
See TracChangeset
for help on using the changeset viewer.