src/gui/text/qfontengine_win.cpp
changeset 22 79de32ba3296
parent 19 fcece45ef507
child 30 5dc02b23752f
equal deleted inserted replaced
19:fcece45ef507 22:79de32ba3296
   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