From 9fbb365684ef662fc183ebd45c2eeb50f40589b5 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 27 Dec 2009 10:01:16 +0000 Subject: 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] --- PuzzleApplet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PuzzleApplet.java') 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(); -- cgit v1.1