Class MetaFont

java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
com.itextpdf.kernel.pdf.canvas.wmf.MetaFont

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

    • MetaFont

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

    • init

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

      public FontProgram getFont() throws IOException
      Returns the Font.
      Returns:
      the font
      Throws:
      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