Changeset 769 for trunk/src/gui/text/qfontengine_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/qfontengine_win.cpp
r651 r769 40 40 ****************************************************************************/ 41 41 42 #if _WIN32_WINNT < 0x0500 43 #undef _WIN32_WINNT 44 #define _WIN32_WINNT 0x0500 45 #endif 46 42 47 #include "qfontengine_p.h" 43 48 #include "qtextengine_p.h" … … 650 655 static const int char_table_entries = sizeof(char_table)/sizeof(ushort); 651 656 657 #ifndef Q_CC_MINGW 658 void QFontEngineWin::getGlyphBearings(glyph_t glyph, qreal *leftBearing, qreal *rightBearing) 659 { 660 HDC hdc = shared_dc(); 661 SelectObject(hdc, hfont); 662 663 #ifndef Q_WS_WINCE 664 if (ttf) 665 #endif 666 667 { 668 ABC abcWidths; 669 GetCharABCWidthsI(hdc, glyph, 1, 0, &abcWidths); 670 if (leftBearing) 671 *leftBearing = abcWidths.abcA; 672 if (rightBearing) 673 *rightBearing = abcWidths.abcC; 674 } 675 676 #ifndef Q_WS_WINCE 677 else { 678 QFontEngine::getGlyphBearings(glyph, leftBearing, rightBearing); 679 } 680 #endif 681 } 682 #endif // Q_CC_MINGW 652 683 653 684 qreal QFontEngineWin::minLeftBearing() const
Note:
See TracChangeset
for help on using the changeset viewer.