equal
deleted
inserted
replaced
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 } |