src/gui/text/qfontengine_qpf.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   576     bool mirrored = flags & QTextEngine::RightToLeft;
   576     bool mirrored = flags & QTextEngine::RightToLeft;
   577     int glyph_pos = 0;
   577     int glyph_pos = 0;
   578     if (symbol) {
   578     if (symbol) {
   579         for (int i = 0; i < len; ++i) {
   579         for (int i = 0; i < len; ++i) {
   580             unsigned int uc = getChar(str, i, len);
   580             unsigned int uc = getChar(str, i, len);
   581             if (mirrored)
       
   582                 uc = QChar::mirroredChar(uc);
       
   583             glyphs->glyphs[glyph_pos] = getTrueTypeGlyphIndex(cmap, uc);
   581             glyphs->glyphs[glyph_pos] = getTrueTypeGlyphIndex(cmap, uc);
   584             if(!glyphs->glyphs[glyph_pos] && uc < 0x100)
   582             if(!glyphs->glyphs[glyph_pos] && uc < 0x100)
   585                 glyphs->glyphs[glyph_pos] = getTrueTypeGlyphIndex(cmap, uc + 0xf000);
   583                 glyphs->glyphs[glyph_pos] = getTrueTypeGlyphIndex(cmap, uc + 0xf000);
   586             ++glyph_pos;
   584             ++glyph_pos;
   587         }
   585         }