WebFont
Leave feedback
On this page
Inheritance: java.lang.Object
public final class WebFont
Represents a font settings for the web
| Method | Description |
|---|---|
| getColor() | Font color in ARGB32 format |
| setColor(ArgbColor value) | Font color in ARGB32 format |
| getWeight() | Sets the weight (or boldness) of the font |
| setWeight(FontWeight value) | Sets the weight (or boldness) of the font |
| getStyle() | Sets whether a font should be styled with a normal, italic, or oblique face from its font-family. |
| setStyle(FontStyle value) | Sets whether a font should be styled with a normal, italic, or oblique face from its font-family. |
| getLine() | Sets a line or combination of lines, applied to the text |
| setLine(TextDecorationLineType value) | Sets a line or combination of lines, applied to the text |
| getSize() | Sets the size of the font in absolute or relative units |
| setSize(FontSize value) | Sets the size of the font in absolute or relative units |
| getName() | Sets the font name. |
| setName(String value) | Sets the font name. |
| deepClone() | Creates and returns a full deep copy of this WebFont instance |
| equals(WebFont other) | Determines whether this instance of WebFont is equal to specified |
| equals(Object obj) | Determines whether this instance of WebFont is equal to specified uncasted object |
public final ArgbColor getColor()
Font color in ARGB32 format
Returns: ArgbColor
public final void setColor(ArgbColor value)
Font color in ARGB32 format
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ArgbColor |
public final FontWeight getWeight()
Sets the weight (or boldness) of the font
Returns: FontWeight
public final void setWeight(FontWeight value)
Sets the weight (or boldness) of the font
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | FontWeight |
public final FontStyle getStyle()
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
Returns: FontStyle
public final void setStyle(FontStyle value)
Sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | FontStyle |
public final TextDecorationLineType getLine()
Sets a line or combination of lines, applied to the text
Returns: TextDecorationLineType
public final void setLine(TextDecorationLineType value)
Sets a line or combination of lines, applied to the text
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | TextDecorationLineType |
public final FontSize getSize()
Sets the size of the font in absolute or relative units
Returns: FontSize
public final void setSize(FontSize value)
Sets the size of the font in absolute or relative units
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | FontSize |
public final String getName()
Sets the font name. If not specified, the default font will be used
Returns: java.lang.String
public final void setName(String value)
Sets the font name. If not specified, the default font will be used
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final WebFont deepClone()
Creates and returns a full deep copy of this WebFont instance
Returns: WebFont - New WebFont instance, that is a full and deep copy of this one
public final boolean equals(WebFont other)
Determines whether this instance of WebFont is equal to specified
Parameters:
| Parameter | Type | Description |
|---|---|---|
| other | WebFont | Another WebFont to check equality, may be NULL |
Returns: boolean - true if equal, false if unequal
public boolean equals(Object obj)
Determines whether this instance of WebFont is equal to specified uncasted object
Parameters:
| Parameter | Type | Description |
|---|---|---|
| obj | java.lang.Object | Object, that is expected to be a WebFont instance |
Returns: boolean - true if equal, false if unequal
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.