src/gui/text/qfontengine.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   355                     ++current;
   355                     ++current;
   356                 }
   356                 }
   357                 ++i;
   357                 ++i;
   358             }
   358             }
   359         } else {
   359         } else {
   360             positions.resize(glyphs.numGlyphs);
       
   361             glyphs_out.resize(glyphs.numGlyphs);
       
   362             int i = 0;
       
   363             while (i < glyphs.numGlyphs) {
   360             while (i < glyphs.numGlyphs) {
   364                 if (!glyphs.attributes[i].dontPrint) {
   361                 if (!glyphs.attributes[i].dontPrint) {
   365                     QFixed gpos_x = xpos + glyphs.offsets[i].x;
   362                     QFixed gpos_x = xpos + glyphs.offsets[i].x;
   366                     QFixed gpos_y = ypos + glyphs.offsets[i].y;
   363                     QFixed gpos_y = ypos + glyphs.offsets[i].y;
   367                     QPointF gpos(gpos_x.toReal(), gpos_y.toReal());
   364                     QPointF gpos(gpos_x.toReal(), gpos_y.toReal());