| java.lang.Object org.pdfbox.pdmodel.graphics.PDFontSetting
PDFontSetting | public class PDFontSetting implements COSObjectable(Code) | | 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?
author: Ben Litchfield version: $Revision: 1.4 $ |
Constructor Summary | |
public | PDFontSetting() Creates a blank font setting, font will be null, size will be 1. | public | PDFontSetting(COSArray fs) Constructs a font setting from an existing array. |
PDFontSetting | public PDFontSetting()(Code) | | Creates a blank font setting, font will be null, size will be 1.
|
PDFontSetting | public PDFontSetting(COSArray fs)(Code) | | Constructs a font setting from an existing array.
Parameters: fs - The new font setting value. |
getFont | public PDFont getFont() throws IOException(Code) | | This will get the font for this font setting.
The font for this setting of null if one was not found. throws: IOException - If there is an error getting the font. |
getFontSize | public float getFontSize()(Code) | | This will get the size of the font.
The size of the font. |
setFont | public void setFont(PDFont font)(Code) | | This will set the font for this font setting.
Parameters: font - The new font. |
setFontSize | public void setFontSize(float size)(Code) | | This will set the size of the font.
Parameters: size - The new size of the font. |
|
|