From a8de1673ca83475227fcc914fd94a9a0be1cba79 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 24 Sep 2023 16:50:49 +0200 Subject: Bug 1462 - Graph Font: Add name + codepoint to ID and Glyph mapping plus traversing through all Glyphs See UISceneDemo03 new Button(options.renderModes, fontSymbols, " "+fontSymbols.getUTF16String("pause")+" ", buttonWidth, buttonHeight); // pause Unicode codepoint symbol is also contained in FontGlyph --- src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java b/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java index 99021b35f..b17399a01 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java +++ b/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java @@ -405,9 +405,9 @@ public class AnimGroup extends Group { { final Font.GlyphVisitor fgv = new Font.GlyphVisitor() { @Override - public void visit(final char symbol, final Glyph glyph, final AffineTransform t) { + public void visit(final Glyph glyph, final AffineTransform t) { if( !glyph.isNonContour() ) { - final GlyphShape gs = new GlyphShape(renderModes, symbol, glyph, t.getTranslateX(), t.getTranslateY()); + final GlyphShape gs = new GlyphShape(renderModes, glyph, t.getTranslateX(), t.getTranslateY()); gs.setScale(fontScale, fontScale, 1f); gs.moveTo(gs.getOrigPos().x()*fontScale, gs.getOrigPos().y()*fontScale, gs.getOrigPos().z()); res.add( new ShapeData( gs ) ); -- cgit v1.2.3