Class MetaFont


  • public class MetaFont
    extends MetaObject
    A Meta Font.
    • Constructor Detail

      • MetaFont

        public MetaFont()
        Creates a MetaFont instance.
    • Method Detail

      • init

        public void init​(InputMeta in)
                  throws java.io.IOException
        Initializes the MetaFont instance.
        Parameters:
        in - InputMeta containing the WMF data
        Throws:
        java.io.IOException - an IOException
      • getFont

        public FontProgram getFont()
                            throws java.io.IOException
        Returns the Font.
        Returns:
        the font
        Throws:
        java.io.IOException - an IOException
      • getEncoding

        public FontEncoding getEncoding()
        Returns the encoding used in the MetaFont.
        Returns:
        the font encoding
      • getAngle

        public float getAngle()
        Returns the angle of the MetaFont.
        Returns:
        the angle
      • isUnderline

        public boolean isUnderline()
        Returns a boolean value indicating if the font is underlined or not.
        Returns:
        true if the font is underlined
      • isStrikeout

        public boolean isStrikeout()
        Returns a boolean value indicating if a font has a strikeout.
        Returns:
        true if the font set strikeout
      • getFontSize

        public float getFontSize​(MetaState state)
        Returns the font size.
        Parameters:
        state - the MetaState
        Returns:
        font size