equal
deleted
inserted
replaced
211 OUTLINETEXTMETRIC *otm = getOutlineTextMetric(hdc); |
211 OUTLINETEXTMETRIC *otm = getOutlineTextMetric(hdc); |
212 designToDevice = QFixed((int)otm->otmEMSquare)/int(otm->otmTextMetrics.tmHeight); |
212 designToDevice = QFixed((int)otm->otmEMSquare)/int(otm->otmTextMetrics.tmHeight); |
213 unitsPerEm = otm->otmEMSquare; |
213 unitsPerEm = otm->otmEMSquare; |
214 x_height = (int)otm->otmsXHeight; |
214 x_height = (int)otm->otmsXHeight; |
215 loadKerningPairs(designToDevice); |
215 loadKerningPairs(designToDevice); |
216 _faceId.filename = QString::fromWCharArray((wchar_t *)((char *)otm + (int)otm->otmpFullName)).toLatin1(); |
216 _faceId.filename = QString::fromWCharArray((wchar_t *)((char *)otm + (quintptr)otm->otmpFullName)).toLatin1(); |
217 lineWidth = otm->otmsUnderscoreSize; |
217 lineWidth = otm->otmsUnderscoreSize; |
218 fsType = otm->otmfsType; |
218 fsType = otm->otmfsType; |
219 free(otm); |
219 free(otm); |
220 } else { |
220 } else { |
221 unitsPerEm = tm.tmHeight; |
221 unitsPerEm = tm.tmHeight; |
1035 HGDIOBJ oldfont = SelectObject(hdc, hf); |
1035 HGDIOBJ oldfont = SelectObject(hdc, hf); |
1036 OUTLINETEXTMETRIC *otm = getOutlineTextMetric(hdc); |
1036 OUTLINETEXTMETRIC *otm = getOutlineTextMetric(hdc); |
1037 Properties p; |
1037 Properties p; |
1038 p.emSquare = unitsPerEm; |
1038 p.emSquare = unitsPerEm; |
1039 p.italicAngle = otm->otmItalicAngle; |
1039 p.italicAngle = otm->otmItalicAngle; |
1040 p.postscriptName = QString::fromWCharArray((wchar_t *)((char *)otm + (int)otm->otmpFamilyName)).toLatin1(); |
1040 p.postscriptName = QString::fromWCharArray((wchar_t *)((char *)otm + (quintptr)otm->otmpFamilyName)).toLatin1(); |
1041 p.postscriptName += QString::fromWCharArray((wchar_t *)((char *)otm + (int)otm->otmpStyleName)).toLatin1(); |
1041 p.postscriptName += QString::fromWCharArray((wchar_t *)((char *)otm + (quintptr)otm->otmpStyleName)).toLatin1(); |
1042 #ifndef QT_NO_PRINTER |
1042 #ifndef QT_NO_PRINTER |
1043 p.postscriptName = QPdf::stripSpecialCharacters(p.postscriptName); |
1043 p.postscriptName = QPdf::stripSpecialCharacters(p.postscriptName); |
1044 #endif |
1044 #endif |
1045 p.boundingBox = QRectF(otm->otmrcFontBox.left, -otm->otmrcFontBox.top, |
1045 p.boundingBox = QRectF(otm->otmrcFontBox.left, -otm->otmrcFontBox.top, |
1046 otm->otmrcFontBox.right - otm->otmrcFontBox.left, |
1046 otm->otmrcFontBox.right - otm->otmrcFontBox.left, |