From 0d38ac68ce3131b7bfe4b7671ef0cd0c1dce9b13 Mon Sep 17 00:00:00 2001 From: David Schweinsberg Date: Fri, 12 May 2017 12:28:22 -0700 Subject: Added tooltip with glyph ID to character map --- src/net/java/dev/typecast/edit/CharacterMap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/java/dev/typecast/edit/CharacterMap.java b/src/net/java/dev/typecast/edit/CharacterMap.java index a515de8..5b95e02 100644 --- a/src/net/java/dev/typecast/edit/CharacterMap.java +++ b/src/net/java/dev/typecast/edit/CharacterMap.java @@ -136,6 +136,8 @@ public class CharacterMap extends JScrollPane implements EditorView { _index = index; _isSelected = isSelected; setPreferredSize(new Dimension(CELL_WIDTH + 1, CELL_HEIGHT + 1)); + setToolTipText(String.format("Glyph ID: %d", + _mapping.getGlyphCode())); return this; } } @@ -204,7 +206,7 @@ public class CharacterMap extends JScrollPane implements EditorView { // int translateX = 2 * unitsPerEmBy2; // int translateY = 2 * unitsPerEmBy2; - // How much should we scale the font to fit it into our tint bitmap? + // How much should we scale the font to fit it into our tiny bitmap? double scaleFactor = 40.0 / _font.getHeadTable().getUnitsPerEm(); _tx = new AffineTransform(); -- cgit v1.2.3