Ignore:
Timestamp:
11/28/18 15:42:02 (6 years ago)
Author:
bln4
Message:

org.expeditee.gio.GraphicsManager ->
org.expeditee.gio.javafx.JavaFXGraphicsManager ->
org.expeditee.gio.swing.SwingGraphicsManager ->

Graphics managers can be now consulted to obtain the height of a character in a given font.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/swing/SwingGraphicsManager.java

    r1168 r1198  
    673673                }
    674674        }
     675
     676        @Override
     677        public int getFontHeight(final Font font) {
     678                final java.awt.Font awtFont = SwingFontManager.getInstance().getInternalFont(font);
     679                final FontMetrics fontMetrics = _jFrame.getGraphics().getFontMetrics(awtFont);
     680                return fontMetrics.getHeight();
     681        }
    675682}
Note: See TracChangeset for help on using the changeset viewer.