Class FontMeasurer


  • public class FontMeasurer
    extends Object
    Author:
    Efstathios Sideris
    • Constructor Detail

      • FontMeasurer

        public FontMeasurer​(Font font,
                            boolean forceFontSize)
    • Method Detail

      • getWidthFor

        public int getWidthFor​(String str,
                               int pixelHeight)
      • getHeightFor

        public int getHeightFor​(String str,
                                int pixelHeight)
      • getWidthFor

        public int getWidthFor​(String str,
                               Font font)
      • getHeightFor

        public int getHeightFor​(String str,
                                Font font)
      • getAscent

        public int getAscent​(Font font)
      • getZHeight

        public int getZHeight​(Font font)
      • getFontFor

        public Font getFontFor​(int maxWidth,
                               String string)
      • getFontFor

        public Font getFontFor​(int pixelHeight)