Font
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject
public class Font extends ValueObject
Font settings
| Constructor | Description |
|---|---|
| Font(String fontFamilyName, float size) | creates new Font instance |
| Method | Description |
|---|---|
| getFamilyName() | Fets font family name |
| getSize() | Gets font size |
| isBold() | Font bold flag |
| setBold(boolean bold) | Sets Font bold flag |
| isItalic() | Font italic flag |
| setItalic(boolean italic) | Sets font italic flag |
| isUnderline() | Gets Font underline |
| setUnderline(boolean underline) | Sets Font underline |
| getDefault() | |
| clone(float newSize) |
public Font(String fontFamilyName, float size)
creates new Font instance
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fontFamilyName | java.lang.String | Font name |
| size | float | Font size |
public String getFamilyName()
Fets font family name
Returns: java.lang.String - Font family name
public float getSize()
Gets font size
Returns: float - Font size
public boolean isBold()
Font bold flag
Returns: boolean - true if bold
public void setBold(boolean bold)
Sets Font bold flag
Parameters:
| Parameter | Type | Description |
|---|---|---|
| bold | boolean | true if bold |
public boolean isItalic()
Font italic flag
Returns: boolean - true if Italic
public void setItalic(boolean italic)
Sets font italic flag
Parameters:
| Parameter | Type | Description |
|---|---|---|
| italic | boolean | true if Italic |
public boolean isUnderline()
Gets Font underline
Returns: boolean - true if Font is underline
public void setUnderline(boolean underline)
Sets Font underline
Parameters:
| Parameter | Type | Description |
|---|---|---|
| underline | boolean | Font underline flag |
public static Font getDefault()
Returns: Font
public Font clone(float newSize)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| newSize | float |
Returns: Font
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.