src/gui/text/qfontengine_win.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 7 3f74d0d4af4c
equal deleted inserted replaced
12:cc75c76972ee 13:c0432d11811c
   652         0
   652         0
   653 };
   653 };
   654 
   654 
   655 static const int char_table_entries = sizeof(char_table)/sizeof(ushort);
   655 static const int char_table_entries = sizeof(char_table)/sizeof(ushort);
   656 
   656 
       
   657 #ifndef Q_CC_MINGW
   657 void QFontEngineWin::getGlyphBearings(glyph_t glyph, qreal *leftBearing, qreal *rightBearing)
   658 void QFontEngineWin::getGlyphBearings(glyph_t glyph, qreal *leftBearing, qreal *rightBearing)
   658 {
   659 {
   659     HDC hdc = shared_dc();
   660     HDC hdc = shared_dc();
   660     SelectObject(hdc, hfont);
   661     SelectObject(hdc, hfont);
   661 
   662 
   676     else {
   677     else {
   677         QFontEngine::getGlyphBearings(glyph, leftBearing, rightBearing);
   678         QFontEngine::getGlyphBearings(glyph, leftBearing, rightBearing);
   678     }
   679     }
   679 #endif
   680 #endif
   680 }
   681 }
       
   682 #endif // Q_CC_MINGW
   681 
   683 
   682 qreal QFontEngineWin::minLeftBearing() const
   684 qreal QFontEngineWin::minLeftBearing() const
   683 {
   685 {
   684     if (lbearing == SHRT_MIN)
   686     if (lbearing == SHRT_MIN)
   685         minRightBearing(); // calculates both
   687         minRightBearing(); // calculates both