Class FontMeasurer

java.lang.Object
org.stathissideris.ascii2image.graphics.FontMeasurer

public class FontMeasurer extends Object
  • Constructor Details

    • FontMeasurer

      public FontMeasurer()
  • Method Details

    • 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)
    • getBoundsFor

      public Rectangle2D getBoundsFor(String str, Font font)
    • getFontFor

      public Font getFontFor(int pixelHeight)
    • 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, FontRenderContext frc)
    • instance

      public static FontMeasurer instance()
    • main

      public static void main(String[] args)