org.pdfbox.pdmodel.graphics
Class PDFontSetting
java.lang.Object
org.pdfbox.pdmodel.graphics.PDFontSetting
- COSObjectable
public class PDFontSetting
extends java.lang.Object
This class represents a font setting used for the graphics state. A font setting is a font and a
font size. Maybe there is a better name for this?
PDFontSetting
public PDFontSetting()
Creates a blank font setting, font will be null, size will be 1.
PDFontSetting
public PDFontSetting(COSArray fs)
Constructs a font setting from an existing array.
fs
- The new font setting value.
getFont
public PDFont getFont()
throws IOException
This will get the font for this font setting.
- The font for this setting of null if one was not found.
getFontSize
public float getFontSize()
This will get the size of the font.
setFont
public void setFont(PDFont font)
This will set the font for this font setting.
setFontSize
public void setFontSize(float size)
This will set the size of the font.
size
- The new size of the font.