diff options
author | David Schweinsberg <[email protected]> | 2017-05-12 12:28:22 -0700 |
---|---|---|
committer | David Schweinsberg <[email protected]> | 2017-05-12 12:28:22 -0700 |
commit | 0d38ac68ce3131b7bfe4b7671ef0cd0c1dce9b13 (patch) | |
tree | dd092b6c5d1a08cd064bed9826643b483f8de297 | |
parent | e1968e0e18935de275dce8325dab418011427117 (diff) |
Added tooltip with glyph ID to character map
-rw-r--r-- | src/net/java/dev/typecast/edit/CharacterMap.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |