Changeset 846 for trunk/src/gui/text/qfontengine_qpf.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_qpf.cpp
r651 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]) … … 579 579 for (int i = 0; i < len; ++i) { 580 580 unsigned int uc = getChar(str, i, len); 581 if (mirrored)582 uc = QChar::mirroredChar(uc);583 581 glyphs->glyphs[glyph_pos] = getTrueTypeGlyphIndex(cmap, uc); 584 582 if(!glyphs->glyphs[glyph_pos] && uc < 0x100) … … 921 919 if (!renderingFontEngine) 922 920 return; 923 924 QImage img = renderingFontEngine->alphaMapForGlyph(glyph).convertToFormat(QImage::Format_Indexed8); 921 QImage img = renderingFontEngine->alphaMapForGlyph(glyph); 922 if (img.format() != QImage::Format_Indexed8) { 923 bool mono = img.depth() == 1; 924 img = img.convertToFormat(QImage::Format_Indexed8); 925 if (mono) { 926 //### we know that 1 is opaque and 0 is transparent 927 uchar *byte = img.bits(); 928 int count = img.byteCount(); 929 while (count--) 930 *byte++ *= 0xff; 931 } 932 } 925 933 glyph_metrics_t metrics = renderingFontEngine->boundingBox(glyph); 926 934 renderingFontEngine->removeGlyphFromCache(glyph);
Note:
See TracChangeset
for help on using the changeset viewer.