diff options
author | aavit <qt-info@nokia.com> | 2011-04-07 12:32:19 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-04-07 12:32:19 (GMT) |
commit | 6a1a3378d2eaf854e4f62f637bd0f3c4c1ad017b (patch) | |
tree | 6fb53f747d8dcb41d9d8c00767d623cfb9fe11c7 /tests/auto/lancelot | |
parent | a5416489043c985d62e5d22bf00f81d174f4605d (diff) | |
download | Qt-6a1a3378d2eaf854e4f62f637bd0f3c4c1ad017b.zip Qt-6a1a3378d2eaf854e4f62f637bd0f3c4c1ad017b.tar.gz Qt-6a1a3378d2eaf854e4f62f637bd0f3c4c1ad017b.tar.bz2 |
Make it possible to test the new font hinting in lance[elot]
A rudimentary test script is also included, showing the use of the new
parameter to the qps setFont command.
Diffstat (limited to 'tests/auto/lancelot')
-rw-r--r-- | tests/auto/lancelot/scripts/hinting.qps | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/lancelot/scripts/hinting.qps b/tests/auto/lancelot/scripts/hinting.qps new file mode 100644 index 0000000..7ce21b2 --- /dev/null +++ b/tests/auto/lancelot/scripts/hinting.qps @@ -0,0 +1,26 @@ +translate 10 50 +setFont "sansserif" 10 +drawText 0 0 "Default hinting:" +setFont "times" 12 normal normal default +drawText 0 20 "The quick brown fox jumps over the lazy dog" + +translate 0 50 +setFont "sansserif" 10 +drawText 0 0 "No hinting:" +setFont "times" 12 normal normal none +drawText 0 20 "The quick brown fox jumps over the lazy dog" + +translate 0 50 +setFont "sansserif" 10 +drawText 0 0 "Vertical hinting:" +setFont "times" 12 normal normal vertical +drawText 0 20 "The quick brown fox jumps over the lazy dog" + +translate 0 50 +setFont "sansserif" 10 +drawText 0 0 "Full hinting:" +setFont "times" 12 normal normal full +drawText 0 20 "The quick brown fox jumps over the lazy dog" + + +# Note: there is also the textlayout_draw command which might be interesting here. |