From c139362afd97e92a6a20f77f60fe952f88b94ebb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 1 Apr 2011 20:50:42 +0200 Subject: Rendered: +enable(GL, bool) ; dumpFontNames.. --- .../test/junit/graph/demos/GPURendererListenerBase01.java | 2 +- .../junit/graph/demos/GPUTextRendererListenerBase01.java | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/test/com/jogamp/opengl') diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java index 30f7ec384..e63985be9 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPURendererListenerBase01.java @@ -112,7 +112,7 @@ public abstract class GPURendererListenerBase01 implements GLEventListener { public void reshape(GLAutoDrawable drawable, int xstart, int ystart, int width, int height) { GL2ES2 gl = drawable.getGL().getGL2ES2(); - gl.glViewport(xstart, ystart, width, height); + gl.glViewport(xstart, ystart, width, height); renderer.reshapePerspective(gl, 45.0f, width, height, 0.1f, 7000.0f); dumpMatrix(); diff --git a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java index bdfaab17b..a3ea93dff 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/demos/GPUTextRendererListenerBase01.java @@ -92,12 +92,18 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB public GPUTextRendererListenerBase01(Vertex.Factory factory, int mode, boolean debug, boolean trace) { super(TextRenderer.create(factory, mode), debug, trace); this.font = FontFactory.get(fontSet).getDefault(); - System.err.println(font.getAllNames(null, "\n")); + dumpFontNames(); this.fontName = font.getName(Font.NAME_FAMILY) + " - " + font.getName(Font.NAME_SUBFAMILY); this.fontNameBox = font.getStringBounds(fontName, fontSizeFixed*2); switchHeadBox(); } + + void dumpFontNames() { + System.err.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); + System.err.println(font.getAllNames(null, "\n")); + System.err.println("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"); + } void switchHeadBox() { headType = ( headType + 1 ) % 3 ; @@ -181,11 +187,13 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB font = FontFactory.get(fontSet).getDefault(); this.fontName = font.getName(Font.NAME_FAMILY) + " - " + font.getName(Font.NAME_SUBFAMILY); this.fontNameBox = font.getStringBounds(fontName, fontSizeFixed*3); + dumpFontNames(); } public void setFontSet(int set, int family, int stylebits) { fontSet = set; - font = FontFactory.get(fontSet).get(family, stylebits); + font = FontFactory.get(fontSet).get(family, stylebits); + dumpFontNames(); } public boolean isUserInputMode() { return userInput; } -- cgit v1.2.3