From 6365b7e6bde5f2fc0bc55f19804acc0319eaf5a8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 6 Feb 2023 02:38:25 +0100 Subject: Graph: TypecastRenderer: Add comment about TTF Glyph's having Winding.CW --- make/scripts/tests.sh | 4 ++-- src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index a5a221198..ed1f17a41 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -930,14 +930,14 @@ function testawtswt() { # # Graph # -testnoawt com.jogamp.opengl.test.junit.graph.TestRegionRendererNEWT01 $* +#testnoawt com.jogamp.opengl.test.junit.graph.TestRegionRendererNEWT01 $* #testnoawt com.jogamp.opengl.test.junit.graph.TestTextRendererNEWT00 $* #testnoawt com.jogamp.opengl.test.junit.graph.TestTextRendererNEWT01 $* #testnoawt com.jogamp.opengl.test.junit.graph.TestTextRendererNEWT10 $* #testnoawt com.jogamp.opengl.test.junit.graph.TestFontsNEWT00 $* #testnoawt com.jogamp.opengl.test.junit.graph.TestTextRendererNEWTBugXXXX $* #testnoawt com.jogamp.opengl.test.junit.graph.demos.ui.UINewtDemo01 $* -#testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo $* +testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo $* #testnoawt com.jogamp.opengl.test.junit.graph.demos.GPURegionNewtDemo $* #testnoawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtDemo $* #testawt com.jogamp.opengl.test.junit.graph.demos.GPUUISceneNewtCanvasAWTDemo $* diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java index 57168244b..09a63d845 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastRenderer.java @@ -39,6 +39,9 @@ import com.jogamp.graph.geom.Vertex.Factory; * Factory to build an {@link OutlineShape} from * {@link jogamp.graph.font.typecast.ot.OTGlyph Glyph}s. * + * TTF Glyph's have Winding.CW, hence we add the OutlineShape in reverse order, + * i.e. each new vertex at position 0. + * * http://www.freetype.org/freetype2/docs/glyphs/glyphs-3.html * http://walon.org/pub/ttf/ttf_glyphs.htm */ -- cgit v1.2.3