Class MetaFont
java.lang.Object
com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
com.itextpdf.kernel.pdf.canvas.wmf.MetaFont
A Meta Font.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
META_BRUSH, META_FONT, META_NOT_SUPPORTED, META_PEN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getAngle()
Returns the angle of the MetaFont.Returns the encoding used in the MetaFont.getFont()
Returns the Font.float
getFontSize
(MetaState state) Returns the font size.void
Initializes the MetaFont instance.boolean
Returns a boolean value indicating if a font has a strikeout.boolean
Returns a boolean value indicating if the font is underlined or not.Methods inherited from class com.itextpdf.kernel.pdf.canvas.wmf.MetaObject
getType
-
Constructor Details
-
MetaFont
public MetaFont()Creates a MetaFont instance.
-
-
Method Details
-
init
Initializes the MetaFont instance.- Parameters:
-
in
- InputMeta containing the WMF data - Throws:
-
IOException
- anIOException
-
getFont
Returns the Font.- Returns:
- the font
- Throws:
-
IOException
- anIOException
-
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
Returns the font size.- Parameters:
-
state
- the MetaState - Returns:
- font size
-