summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/scripts
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2011-04-07 14:32:19 +0200
committeraavit <qt-info@nokia.com>2011-04-07 14:32:19 +0200
commit6a1a3378d2eaf854e4f62f637bd0f3c4c1ad017b (patch)
tree6fb53f747d8dcb41d9d8c00767d623cfb9fe11c7 /tests/auto/lancelot/scripts
parenta5416489043c985d62e5d22bf00f81d174f4605d (diff)
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/scripts')
-rw-r--r--tests/auto/lancelot/scripts/hinting.qps26
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 0000000000..7ce21b287a
--- /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.