public class PDFontSetting extends Object implements COSObjectable
Constructor and Description |
---|
PDFontSetting()
Creates a blank font setting, font will be null, size will be 1.
|
PDFontSetting(COSArray fs)
Constructs a font setting from an existing array.
|
Modifier and Type | Method and Description |
---|---|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
PDFont |
getFont()
This will get the font for this font setting.
|
float |
getFontSize()
This will get the size of the font.
|
void |
setFont(PDFont font)
This will set the font for this font setting.
|
void |
setFontSize(float size)
This will set the size of the font.
|
public PDFontSetting()
public PDFontSetting(COSArray fs)
fs
- The new font setting value.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public PDFont getFont() throws IOException
IOException
- If there is an error getting the font.public void setFont(PDFont font)
font
- The new font.public float getFontSize()
public void setFontSize(float size)
size
- The new size of the font.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.