-Clazz.declarePackage ("java.awt");\r
-Clazz.load (["java.awt.font.FontRenderContext"], "java.awt.FontMetrics", ["java.lang.Character"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.font = null;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt, "FontMetrics");\r
-Clazz.makeConstructor (c$, \r
-function (font) {\r
-this.font = font;\r
-}, "java.awt.Font");\r
-Clazz.defineMethod (c$, "getFont", \r
-function () {\r
-return this.font;\r
-});\r
-Clazz.defineMethod (c$, "getFontRenderContext", \r
-function () {\r
-return java.awt.FontMetrics.DEFAULT_FRC;\r
-});\r
-Clazz.defineMethod (c$, "getLeading", \r
-function () {\r
-return 0;\r
-});\r
-Clazz.defineMethod (c$, "getAscent", \r
-function () {\r
-return this.font.getSize ();\r
-});\r
-Clazz.defineMethod (c$, "getDescent", \r
-function () {\r
-return 0;\r
-});\r
-Clazz.defineMethod (c$, "getHeight", \r
-function () {\r
-return this.getLeading () + this.getAscent () + this.getDescent ();\r
-});\r
-Clazz.defineMethod (c$, "getMaxAscent", \r
-function () {\r
-return this.getAscent ();\r
-});\r
-Clazz.defineMethod (c$, "getMaxDescent", \r
-function () {\r
-return this.getDescent ();\r
-});\r
-Clazz.defineMethod (c$, "getMaxDecent", \r
-function () {\r
-return this.getMaxDescent ();\r
-});\r
-Clazz.defineMethod (c$, "getMaxAdvance", \r
-function () {\r
-return -1;\r
-});\r
-Clazz.defineMethod (c$, "charWidth", \r
-function (codePoint) {\r
-if (!Character.isValidCodePoint (codePoint)) {\r
-codePoint = 0xffff;\r
-}if (codePoint < 256) {\r
-return this.getWidths ()[codePoint];\r
-} else {\r
-var buffer = Clazz.newCharArray (2, '\0');\r
-var len = Character.toChars (codePoint, buffer, 0);\r
-return this.charsWidth (buffer, 0, len);\r
-}}, "~N");\r
-Clazz.defineMethod (c$, "charWidth", \r
-function (ch) {\r
-if (ch.charCodeAt (0) < 256) {\r
-return this.getWidths ()[ch.charCodeAt (0)];\r
-}var data = Clazz.newCharArray (-1, [ch]);\r
-return this.charsWidth (data, 0, 1);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "stringWidth", \r
-function (str) {\r
-var len = str.length;\r
-var data = Clazz.newCharArray (len, '\0');\r
-str.getChars (0, len, data, 0);\r
-return this.charsWidth (data, 0, len);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "charsWidth", \r
-function (data, off, len) {\r
-return this.stringWidth ( String.instantialize (data, off, len));\r
-}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "bytesWidth", \r
-function (data, off, len) {\r
-return this.stringWidth ( String.instantialize (data, 0, off, len));\r
-}, "~A,~N,~N");\r
-Clazz.defineMethod (c$, "getWidths", \r
-function () {\r
-var widths = Clazz.newIntArray (256, 0);\r
-for (var ch = String.fromCharCode (0); ch.charCodeAt (0) < 256; ch = String.fromCharCode (ch.charCodeAt (0) + 1)) {\r
-widths[ch.charCodeAt (0)] = this.charWidth (ch);\r
-}\r
-return widths;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.getClass ().getName () + "[font=" + this.getFont () + "ascent=" + this.getAscent () + ", descent=" + this.getDescent () + ", height=" + this.getHeight () + "]";\r
-});\r
-c$.DEFAULT_FRC = c$.prototype.DEFAULT_FRC = new java.awt.font.FontRenderContext (null, false, false);\r
-});\r
+Clazz.declarePackage ("java.awt");
+Clazz.load (["java.awt.font.FontRenderContext"], "java.awt.FontMetrics", ["java.lang.Character"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.font = null;
+Clazz.instantialize (this, arguments);
+}, java.awt, "FontMetrics");
+Clazz.makeConstructor (c$,
+function (font) {
+this.font = font;
+}, "java.awt.Font");
+Clazz.defineMethod (c$, "getFont",
+function () {
+return this.font;
+});
+Clazz.defineMethod (c$, "getFontRenderContext",
+function () {
+return java.awt.FontMetrics.DEFAULT_FRC;
+});
+Clazz.defineMethod (c$, "getLeading",
+function () {
+return 0;
+});
+Clazz.defineMethod (c$, "getAscent",
+function () {
+return this.font.getSize ();
+});
+Clazz.defineMethod (c$, "getDescent",
+function () {
+return 0;
+});
+Clazz.defineMethod (c$, "getHeight",
+function () {
+return this.getLeading () + this.getAscent () + this.getDescent ();
+});
+Clazz.defineMethod (c$, "getMaxAscent",
+function () {
+return this.getAscent ();
+});
+Clazz.defineMethod (c$, "getMaxDescent",
+function () {
+return this.getDescent ();
+});
+Clazz.defineMethod (c$, "getMaxDecent",
+function () {
+return this.getMaxDescent ();
+});
+Clazz.defineMethod (c$, "getMaxAdvance",
+function () {
+return -1;
+});
+Clazz.defineMethod (c$, "charWidth",
+function (codePoint) {
+if (!Character.isValidCodePoint (codePoint)) {
+codePoint = 0xffff;
+}if (codePoint < 256) {
+return this.getWidths ()[codePoint];
+} else {
+var buffer = Clazz.newCharArray (2, '\0');
+var len = Character.toChars (codePoint, buffer, 0);
+return this.charsWidth (buffer, 0, len);
+}}, "~N");
+Clazz.defineMethod (c$, "charWidth",
+function (ch) {
+if (ch.charCodeAt (0) < 256) {
+return this.getWidths ()[ch.charCodeAt (0)];
+}var data = Clazz.newCharArray (-1, [ch]);
+return this.charsWidth (data, 0, 1);
+}, "~S");
+Clazz.defineMethod (c$, "stringWidth",
+function (str) {
+var len = str.length;
+var data = Clazz.newCharArray (len, '\0');
+str.getChars (0, len, data, 0);
+return this.charsWidth (data, 0, len);
+}, "~S");
+Clazz.defineMethod (c$, "charsWidth",
+function (data, off, len) {
+return this.stringWidth ( String.instantialize (data, off, len));
+}, "~A,~N,~N");
+Clazz.defineMethod (c$, "bytesWidth",
+function (data, off, len) {
+return this.stringWidth ( String.instantialize (data, 0, off, len));
+}, "~A,~N,~N");
+Clazz.defineMethod (c$, "getWidths",
+function () {
+var widths = Clazz.newIntArray (256, 0);
+for (var ch = String.fromCharCode (0); ch.charCodeAt (0) < 256; ch = String.fromCharCode (ch.charCodeAt (0) + 1)) {
+widths[ch.charCodeAt (0)] = this.charWidth (ch);
+}
+return widths;
+});
+Clazz.overrideMethod (c$, "toString",
+function () {
+return this.getClass ().getName () + "[font=" + this.getFont () + "ascent=" + this.getAscent () + ", descent=" + this.getDescent () + ", height=" + this.getHeight () + "]";
+});
+c$.DEFAULT_FRC = c$.prototype.DEFAULT_FRC = new java.awt.font.FontRenderContext (null, false, false);
+});