summaryrefslogtreecommitdiffstats
path: root/tests/auto/qglyphs
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2011.Rohan McGovern2011-03-111-1/+1
| | | | | Reviewed-by: Trust Me (cherry picked from commit 774a3536b00c4d6e4c4c10b708e31b4373a338e3)
* Fix Core Text font loading for certain Mac FontsJiang Jiang2010-09-101-8/+0
| | | | | | | | | | | Font names enumerated by Core Text cannot be found by ATSFontFamilyFindFromName because ATS is expecting native names instead of the names returned by Core Text. This patch get rid of ATS font matching code in Cocoa code path to simplify the code, avoid deprecation warnings (in the future) and fix this issue. Task-number: QTBUG-11145 Reviewed-by: Eskil
* Support RTL text in QGlyphsEskil Abrahamsen Blomfeldt2010-07-141-0/+49
| | | | | | | | | RTL text would be positioned wrong with QGlyphs, as we would not correctly detect the direction of the text and pass it into getGlyphPositions(). The bidi analysis is the same as in the QTextLine::draw() method. Reviewed-by: Kim
* Support text decoration in QPainter::drawGlyphs()Eskil Abrahamsen Blomfeldt2010-07-141-0/+126
| | | | | | | | | | | | In order to support text decorations (overline, underline and strikeout) in QPainter::drawGlyphs(), we need to call drawTextItemDecoration() from this function. To support this, it has been generalized to no longer require a QTextItemInt. We also need to propagate the decoration attributes of the font from QTextLayout to QGlyphs, since this is not part of the QFontEngine. Task-number: QTBUG-12122 Reviewed-by: Kim
* Remove debug info from tst_QGlyphsEskil Abrahamsen Blomfeldt2010-06-151-1/+1
| | | | Mistakenly added in 171ad741fda84384a64ce56c847de7667051914c.
* Fix tst_QGlyphs to pass on Windows XPEskil Abrahamsen Blomfeldt2010-06-151-3/+3
| | | | | Hangul not supported on XP by default, so change the script in the tests to greek instead.
* Test native graphics engine in tst_QGlyphsEskil Abrahamsen Blomfeldt2010-06-071-15/+15
| | | | | | | | | | Drawing to QImage will always go through the raster engine, so some bugs might not be caught. This also fixes a test failure on X11, since the raster engine on X11 is inconsistent with regards to how it handles subpixel antialiasing into images. See task QTBUG-11268. Reviewed-by: Olivier
* Remove unused function in tst_QGlyphsEskil Abrahamsen Blomfeldt2010-06-071-25/+0
| | | | Static function which was never called, caused a warning with gcc
* Fix maketestselftest by adding the qglyphs testOlivier Goffart2010-06-072-1/+7
| | | | | | Also make the test find the font in shadow build Reviewed-by: eskil
* New class: QGlyphsEskil Abrahamsen Blomfeldt2010-06-043-0/+436
Introduce an API to access glyph indexes in a font directly. A bug was discovered during this work, where different hinting flags in loadGlyph() and loadGlyphMetrics() would make the metrics in the two functions different, thus causing drawCachedGlyphs() (which uses loadGlyphMetrics() indirectly) to use different metrics than the standard drawTextItem() code path (which uses loadGlyph()). The bug was visible in the tst_QGlyphs::drawExistingGlyphs() test. Reviewed-by: Simon Hausmann