Font

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject

public class Font extends ValueObject

Font settings

Constructors

Constructor Description
Font(String fontFamilyName, float size) creates new Font instance

Methods

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)

Font(String fontFamilyName, float size)

public Font(String fontFamilyName, float size)

creates new Font instance

Parameters:

Parameter Type Description
fontFamilyName java.lang.String Font name
size float Font size

getFamilyName()

public String getFamilyName()

Fets font family name

Returns: java.lang.String - Font family name

getSize()

public float getSize()

Gets font size

Returns: float - Font size

isBold()

public boolean isBold()

Font bold flag

Returns: boolean - true if bold

setBold(boolean bold)

public void setBold(boolean bold)

Sets Font bold flag

Parameters:

Parameter Type Description
bold boolean true if bold

isItalic()

public boolean isItalic()

Font italic flag

Returns: boolean - true if Italic

setItalic(boolean italic)

public void setItalic(boolean italic)

Sets font italic flag

Parameters:

Parameter Type Description
italic boolean true if Italic

isUnderline()

public boolean isUnderline()

Gets Font underline

Returns: boolean - true if Font is underline

setUnderline(boolean underline)

public void setUnderline(boolean underline)

Sets Font underline

Parameters:

Parameter Type Description
underline boolean Font underline flag

getDefault()

public static Font getDefault()

Returns: Font

clone(float newSize)

public Font clone(float newSize)

Parameters:

Parameter Type Description
newSize float

Returns: Font