aboutsummaryrefslogtreecommitdiffstats
path: root/test/Issue344Test4.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-02-19 08:12:42 +0000
committerKenneth Russel <[email protected]>2008-02-19 08:12:42 +0000
commit1e1d70194822eabf41e05c8d890f93235cb0eff2 (patch)
treecfa0eff152fdae35945a4e958b6553a2262a2a0a /test/Issue344Test4.java
parent08550a5612c42223b307826c9c100a713a79b185 (diff)
Addendum to fix for Issue 344: Serious TextRenderer problems involving large fonts & unicode characters
Fixed off-by-one error in computation of needsAdvance bit for high Unicode strings pointed out by spiraljetty on JOGL forum. Added test case for this. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1538 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'test/Issue344Test4.java')
-rwxr-xr-xtest/Issue344Test4.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Issue344Test4.java b/test/Issue344Test4.java
new file mode 100755
index 000000000..1e077d2fd
--- /dev/null
+++ b/test/Issue344Test4.java
@@ -0,0 +1,10 @@
+public class Issue344Test4 extends Issue344Base {
+ protected String getText() {
+ // test 4 - unicode letter as second-to-last is rendered incorrectly
+ return "\u201CGreetings\u201D!";
+ }
+
+ public static void main(String[] args) {
+ new Issue344Test4().run(args);
+ }
+}