Changeset 769 for trunk/src/gui/text/qfontmetrics.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/qfontmetrics.cpp
r651 r769 64 64 int tabStops, int *tabArray, int tabArrayLen, 65 65 QPainter *painter); 66 extern int qt_defaultDpi();66 Q_GUI_EXPORT extern int qt_defaultDpi(); 67 67 68 68 /***************************************************************************** … … 473 473 engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0); 474 474 // ### can nglyphs != 1 happen at all? Not currently I think 475 glyph_metrics_t gi = engine->boundingBox(glyphs.glyphs[0]); 476 return qRound(gi.x); 475 qreal lb; 476 engine->getGlyphBearings(glyphs.glyphs[0], &lb); 477 return qRound(lb); 477 478 } 478 479 … … 507 508 engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0); 508 509 // ### can nglyphs != 1 happen at all? Not currently I think 509 glyph_metrics_t gi = engine->boundingBox(glyphs.glyphs[0]); 510 return qRound(gi.xoff - gi.x - gi.width); 510 qreal rb; 511 engine->getGlyphBearings(glyphs.glyphs[0], 0, &rb); 512 return qRound(rb); 511 513 } 512 514 … … 1318 1320 engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0); 1319 1321 // ### can nglyphs != 1 happen at all? Not currently I think 1320 glyph_metrics_t gi = engine->boundingBox(glyphs.glyphs[0]); 1321 return gi.x.toReal(); 1322 qreal lb; 1323 engine->getGlyphBearings(glyphs.glyphs[0], &lb); 1324 return lb; 1322 1325 } 1323 1326 … … 1352 1355 engine->stringToCMap(&ch, 1, &glyphs, &nglyphs, 0); 1353 1356 // ### can nglyphs != 1 happen at all? Not currently I think 1354 glyph_metrics_t gi = engine->boundingBox(glyphs.glyphs[0]); 1355 return (gi.xoff - gi.x - gi.width).toReal(); 1357 qreal rb; 1358 engine->getGlyphBearings(glyphs.glyphs[0], 0, &rb); 1359 return rb; 1360 1356 1361 } 1357 1362
Note:
See TracChangeset
for help on using the changeset viewer.