From e9506e132e557c3c242331f28cdecfd7adae21f3 Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 19 Feb 2010 21:50:32 +0000 Subject: [PATCH] quick bug fixes and testing --- core/src/processing/core/PFont.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/processing/core/PFont.java b/core/src/processing/core/PFont.java index fbb1ef5a6..0b883b507 100644 --- a/core/src/processing/core/PFont.java +++ b/core/src/processing/core/PFont.java @@ -203,7 +203,7 @@ public class PFont implements PConstants { // http://dev.processing.org/bugs/show_bug.cgi?id=494 Arrays.sort(charset); - glyphs = new Glyph[glyphCount]; + glyphs = new Glyph[charset.length]; glyphCount = 0; for (char c : charset) { @@ -348,7 +348,6 @@ public class PFont implements PConstants { * @param c character to create an image for. */ protected void addGlyph(char c) { - //Glyph glyph = createGlyph(c); Glyph glyph = new Glyph(c); if (glyphCount == glyphs.length) { @@ -735,11 +734,11 @@ public class PFont implements PConstants { for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { pixels[y * width + x] = temp[y*w + x] & 0xff; - //System.out.print((images[i].pixels[y*64+x] > 128) ? "*" : "."); +// System.out.print((image.pixels[y*64+x] > 128) ? "*" : "."); } - //System.out.println(); +// System.out.println(); } - //System.out.println(); +// System.out.println(); }