Changeset 846 for trunk/src/gui/text/qfontengine_win.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/text/qfontengine_win.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 51 51 #include <private/qapplication_p.h> 52 52 53 #include < qlibrary.h>53 #include <.h> 54 54 #include <qpaintdevice.h> 55 55 #include <qpainter.h> … … 64 64 65 65 #include <private/qpainter_p.h> 66 #include <private/qpdf_p.h>67 66 #include "qpaintengine.h" 68 67 #include "qvarlengtharray.h" … … 141 140 return; 142 141 resolvedGetCharWidthI = true; 143 ptrGetCharWidthI = (PtrGetCharWidthI)Q Library::resolve(QLatin1String("gdi32"), "GetCharWidthI");142 ptrGetCharWidthI = (PtrGetCharWidthI)QLibrary::resolve(QLatin1String("gdi32"), "GetCharWidthI"); 144 143 } 145 144 #endif // !defined(Q_WS_WINCE) … … 214 213 x_height = (int)otm->otmsXHeight; 215 214 loadKerningPairs(designToDevice); 216 _faceId.filename = QString::fromWCharArray((wchar_t *)((char *)otm + ( int)otm->otmpFullName)).toLatin1();215 _faceId.filename = QString::fromWCharArray((wchar_t *)((char *)otm + ()otm->otmpFullName)).toLatin1(); 217 216 lineWidth = otm->otmsUnderscoreSize; 218 217 fsType = otm->otmfsType; … … 488 487 w += glyphs.effectiveAdvance(i); 489 488 490 return glyph_metrics_t(0, -tm.tmAscent, w , tm.tmHeight, w, 0);489 return glyph_metrics_t(0, -tm.tmAscent, w, tm.tmHeight, w, 0); 491 490 } 492 491 … … 1038 1037 p.emSquare = unitsPerEm; 1039 1038 p.italicAngle = otm->otmItalicAngle; 1040 p.postscriptName = QString::fromWCharArray((wchar_t *)((char *)otm + (int)otm->otmpFamilyName)).toLatin1(); 1041 p.postscriptName += QString::fromWCharArray((wchar_t *)((char *)otm + (int)otm->otmpStyleName)).toLatin1(); 1042 #ifndef QT_NO_PRINTER 1043 p.postscriptName = QPdf::stripSpecialCharacters(p.postscriptName); 1044 #endif 1039 p.postscriptName = QString::fromWCharArray((wchar_t *)((char *)otm + (quintptr)otm->otmpFamilyName)).toLatin1(); 1040 p.postscriptName += QString::fromWCharArray((wchar_t *)((char *)otm + (quintptr)otm->otmpStyleName)).toLatin1(); 1041 p.postscriptName = QFontEngine::convertToPostscriptFontFamilyName(p.postscriptName); 1045 1042 p.boundingBox = QRectF(otm->otmrcFontBox.left, -otm->otmrcFontBox.top, 1046 1043 otm->otmrcFontBox.right - otm->otmrcFontBox.left, … … 1213 1210 QImage indexed(mask->width(), mask->height(), QImage::Format_Indexed8); 1214 1211 1215 // ### This part is kinda pointless, but we'll crash later if we don t because some1212 // ### This part is kinda pointless, but we'll crash later if we dont because some 1216 1213 // code paths expects there to be colortables for index8-bit... 1217 1214 QVector<QRgb> colors(256); … … 1297 1294 first->ref.ref(); 1298 1295 fontDef = engines[0]->fontDef; 1296 1299 1297 } 1300 1298 … … 1318 1316 engines[at]->ref.ref(); 1319 1317 engines[at]->fontDef = fontDef; 1318 1319 1320 1320 } 1321 1321
Note:
See TracChangeset
for help on using the changeset viewer.