aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-12-27 10:01:16 +0000
committerSimon Tatham <anakin@pobox.com>2009-12-27 10:01:16 +0000
commit9fbb365684ef662fc183ebd45c2eeb50f40589b5 (patch)
tree494e77cfaa8402d920bd6615db0a31dbdbc59183 /PuzzleApplet.java
parent72922b307822874862d943893b10ac75d01689d2 (diff)
downloadpuzzles-9fbb365684ef662fc183ebd45c2eeb50f40589b5.zip
puzzles-9fbb365684ef662fc183ebd45c2eeb50f40589b5.tar.gz
puzzles-9fbb365684ef662fc183ebd45c2eeb50f40589b5.tar.bz2
puzzles-9fbb365684ef662fc183ebd45c2eeb50f40589b5.tar.xz
Introduce, and implement as usefully as I can in all front ends, a
new function in the drawing API which permits the display of text from outside basic ASCII. A fallback mechanism is provided so that puzzles can give a list of strings they'd like to display in order of preference and the system will return the best one it can manage; puzzles are required to cope with ASCII-only front ends. [originally from svn r8793]
Diffstat (limited to 'PuzzleApplet.java')
-rw-r--r--PuzzleApplet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/PuzzleApplet.java b/PuzzleApplet.java
index f401ecf..b796aa4 100644
--- a/PuzzleApplet.java
+++ b/PuzzleApplet.java
@@ -373,7 +373,7 @@ public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB {
case 7: // string
gg.setColor(colors[arg2]);
{
- String text = runtime.cstring(arg3);
+ String text = runtime.utfstring(arg3);
Font ft = new Font((xarg3 & 0x10) != 0 ? "Monospaced" : "Dialog",
Font.PLAIN, 100);
int height100 = this.getFontMetrics(ft).getHeight();