Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/text/qfontengine_win.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    5151#include <private/qapplication_p.h>
    5252
    53 #include <qlibrary.h>
     53#include <.h>
    5454#include <qpaintdevice.h>
    5555#include <qpainter.h>
     
    6464
    6565#include <private/qpainter_p.h>
    66 #include <private/qpdf_p.h>
    6766#include "qpaintengine.h"
    6867#include "qvarlengtharray.h"
     
    141140        return;
    142141    resolvedGetCharWidthI = true;
    143     ptrGetCharWidthI = (PtrGetCharWidthI)QLibrary::resolve(QLatin1String("gdi32"), "GetCharWidthI");
     142    ptrGetCharWidthI = (PtrGetCharWidthI)QLibrary::resolve(QLatin1String("gdi32"), "GetCharWidthI");
    144143}
    145144#endif // !defined(Q_WS_WINCE)
     
    214213        x_height = (int)otm->otmsXHeight;
    215214        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();
    217216        lineWidth = otm->otmsUnderscoreSize;
    218217        fsType = otm->otmfsType;
     
    488487        w += glyphs.effectiveAdvance(i);
    489488
    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);
    491490}
    492491
     
    10381037    p.emSquare = unitsPerEm;
    10391038    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);
    10451042    p.boundingBox = QRectF(otm->otmrcFontBox.left, -otm->otmrcFontBox.top,
    10461043                           otm->otmrcFontBox.right - otm->otmrcFontBox.left,
     
    12131210    QImage indexed(mask->width(), mask->height(), QImage::Format_Indexed8);
    12141211
    1215     // ### This part is kinda pointless, but we'll crash later if we dont because some
     1212    // ### This part is kinda pointless, but we'll crash later if we dont because some
    12161213    // code paths expects there to be colortables for index8-bit...
    12171214    QVector<QRgb> colors(256);
     
    12971294    first->ref.ref();
    12981295    fontDef = engines[0]->fontDef;
     1296
    12991297}
    13001298
     
    13181316    engines[at]->ref.ref();
    13191317    engines[at]->fontDef = fontDef;
     1318
     1319
    13201320}
    13211321
Note: See TracChangeset for help on using the changeset viewer.