public final class WebFont extends Object
Represents a font settings for the web
| Modifier and Type | Method and Description |
|---|---|
WebFont |
deepClone()
Creates and returns a full deep copy of this
WebFont instance |
boolean |
equals(Object obj)
Determines whether this instance of WebFont is equal to specified uncasted object
|
boolean |
equals(WebFont other)
Determines whether this instance of WebFont is equal to specified
|
ArgbColor |
getColor()
Font color in ARGB32 format
|
com.groupdocs.editor.htmlcss.css.properties.TextDecorationLineType |
getLine()
Sets a line or combination of lines, applied to the text
|
String |
getName()
Sets the font name.
|
FontSize |
getSize()
Sets the size of the font in absolute or relative units
|
FontStyle |
getStyle()
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
|
FontWeight |
getWeight()
Sets the weight (or boldness) of the font
|
void |
setColor(ArgbColor value)
Font color in ARGB32 format
|
void |
setLine(com.groupdocs.editor.htmlcss.css.properties.TextDecorationLineType value)
Sets a line or combination of lines, applied to the text
|
void |
setName(String value)
Sets the font name.
|
void |
setSize(FontSize value)
Sets the size of the font in absolute or relative units
|
void |
setStyle(FontStyle value)
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
|
void |
setWeight(FontWeight value)
Sets the weight (or boldness) of the font
|
public final WebFont deepClone()
Creates and returns a full deep copy of this WebFont instance
WebFont instance, that is a full and deep copy of this onepublic boolean equals(Object obj)
Determines whether this instance of WebFont is equal to specified uncasted object
public final boolean equals(WebFont other)
Determines whether this instance of WebFont is equal to specified
other - Another WebFont to check equality, may be NULLpublic final ArgbColor getColor()
Font color in ARGB32 format
public final com.groupdocs.editor.htmlcss.css.properties.TextDecorationLineType getLine()
Sets a line or combination of lines, applied to the text
public final String getName()
Sets the font name. If not specified, the default font will be used
public final FontSize getSize()
Sets the size of the font in absolute or relative units
public final FontStyle getStyle()
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
public final FontWeight getWeight()
Sets the weight (or boldness) of the font
public final void setColor(ArgbColor value)
Font color in ARGB32 format
public final void setLine(com.groupdocs.editor.htmlcss.css.properties.TextDecorationLineType value)
Sets a line or combination of lines, applied to the text
public final void setName(String value)
Sets the font name. If not specified, the default font will be used
public final void setSize(FontSize value)
Sets the size of the font in absolute or relative units
public final void setStyle(FontStyle value)
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
public final void setWeight(FontWeight value)
Sets the weight (or boldness) of the font
Copyright © 2024. All rights reserved.