Class AWTFontManager

  • All Implemented Interfaces:
    IFontManager

    public class AWTFontManager
    extends AbstractFontManager
    AWT-specific font manager.
    Source code:
    main
    Belongs to CDK module:
    renderbasic
    • Constructor Detail

      • AWTFontManager

        public AWTFontManager()
        Make a manager for fonts in AWT, with a minimum font size of 9.
    • Method Detail

      • setFontForZoom

        public void setFontForZoom​(double zoom)
        For a particular zoom level, set the appropriate font size to use.
        Parameters:
        zoom - a real number in the range (0.0, INF)
      • getFont

        public Font getFont()
        Get the current font.
        Returns:
        the font at this zoom level