Changeset 561 for trunk/src/gui/text/qfontsubset.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/text/qfontsubset.cpp
r396 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 334 334 } 335 335 if (name[0]) { 336 s << "/"<< name;336 s << '/' << name; 337 337 } else 338 338 #endif … … 340 340 if (fontEngine->type() == QFontEngine::XLFD) { 341 341 uint uc = static_cast<QFontEngineXLFD *>(fontEngine)->toUnicode(glyphIndex); 342 s << "/"<< glyphName(uc, false /* ### */);342 s << '/' << glyphName(uc, false /* ### */); 343 343 } else 344 344 #endif 345 345 if (reverseMap[glyphIndex] && reverseMap[glyphIndex] < 0x10000) { 346 s << "/"<< glyphName(reverseMap[glyphIndex], false);346 s << '/' << glyphName(reverseMap[glyphIndex], false); 347 347 } else { 348 348 s << "/gl" << (int)glyphIndex; … … 396 396 // qDebug(" startLinear=%x endnonlinear=%x", startLinear,endnonlinear); 397 397 if (endnonlinear > start) { 398 s << start << "[";398 s << start << '['; 399 399 for (int i = start; i < endnonlinear; ++i) 400 400 s << (widths[i]*scale).toInt(); … … 402 402 } 403 403 if (startLinear) 404 s << startLinear << g - 1 << (widths[startLinear]*scale).toInt() << "\n";404 s << startLinear << g - 1 << (widths[startLinear]*scale).toInt() << '\n'; 405 405 } 406 406 s << "]\n"; … … 489 489 // qDebug(" startLinear=%x endnonlinear=%x", startLinear,endnonlinear); 490 490 if (endnonlinear > start) { 491 s << "<"<< QPdf::toHex((ushort)start, buf) << "> <";491 s << '<' << QPdf::toHex((ushort)start, buf) << "> <"; 492 492 s << QPdf::toHex((ushort)(endnonlinear - 1), buf) << "> "; 493 493 if (endnonlinear == start + 1) { 494 s << "<"<< QPdf::toHex((ushort)reverseMap[start], buf) << ">\n";494 s << '<' << QPdf::toHex((ushort)reverseMap[start], buf) << ">\n"; 495 495 } else { 496 s << "[";496 s << '['; 497 497 for (int i = start; i < endnonlinear; ++i) { 498 s << "<"<< QPdf::toHex((ushort)reverseMap[i], buf) << "> ";498 s << '<' << QPdf::toHex((ushort)reverseMap[i], buf) << "> "; 499 499 } 500 500 s << "]\n"; … … 509 509 if ((uc_end >> 8) != (uc_start >> 8)) 510 510 len = 256 - (uc_start & 0xff); 511 s << "<"<< QPdf::toHex((ushort)startLinear, buf) << "> <";511 s << '<' << QPdf::toHex((ushort)startLinear, buf) << "> <"; 512 512 s << QPdf::toHex((ushort)(startLinear + len - 1), buf) << "> "; 513 s << "<"<< QPdf::toHex((ushort)reverseMap[startLinear], buf) << ">\n";513 s << '<' << QPdf::toHex((ushort)reverseMap[startLinear], buf) << ">\n"; 514 514 checkRanges(ts, ranges, nranges); 515 515 startLinear += len; … … 1656 1656 QByteArray id = QByteArray::number(object_id); 1657 1657 QByteArray psname = properties.postscriptName; 1658 psname.replace( " ", "");1658 psname.replace(' ', ""); 1659 1659 1660 1660 standard_font = false; … … 1682 1682 s << "/F" << id << "-Base\n"; 1683 1683 if (standard_font) { 1684 s << "/"<< psname << " findfont\n"1684 s << '/' << psname << " findfont\n" 1685 1685 "0 dict copy dup /NumGlyphs 0 put dup /CMap 256 array put def\n"; 1686 1686 } else { 1687 1687 s << "<<\n"; 1688 1688 if(!psname.isEmpty()) 1689 s << "/FontName /" << psname << "\n";1689 s << "/FontName /" << psname << '\n'; 1690 1690 s << "/FontInfo <</FsType " << (int)fontEngine->fsType << ">>\n" 1691 1691 "/FontType 1\n" … … 1723 1723 QByteArray id = QByteArray::number(object_id); 1724 1724 1725 s << "F"<< id << "-Base [\n";1725 s << 'F' << id << "-Base [\n"; 1726 1726 for (int i = downloaded_glyphs; i < nGlyphs; ++i) { 1727 1727 glyph_t g = glyph_indices.at(i);
Note:
See TracChangeset
for help on using the changeset viewer.