Class FontVariant
java.lang.Object
com.priint.pubserver.comet.entity.fontdb.FontVariant
- All Implemented Interfaces:
Serializable
The Class FontVariant.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Font Stretch.static enumThe font styles.static enumThe Font Weight. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFace()Gets the name of the font face, e.g.getFont()Gets the name of this font variant, e.g.Gets the stretch of this font variant, e.g.getStyle()Gets the style of this font variant.Gets the weight of this font variant, e.g.merge(FontVariant other) Merge definitions of other font variants into this font variant.voidSets the name of the font face, e.g.voidSets the name of this font variant, e.g.voidsetStretch(FontVariant.Stretch stretch) Sets the stretch of this font variant, e.g.voidsetStyle(FontVariant.Style style) Sets the style of this font variant, i.e.voidsetWeight(FontVariant.Weight weight) Sets the weight of this font variant, e.g.
-
Constructor Details
-
FontVariant
public FontVariant()
-
-
Method Details
-
getFont
Gets the name of this font variant, e.g. 'Arial'
- Returns:
- name of this font variant
-
setFont
Sets the name of this font variant, e.g. 'Arial'
- Parameters:
font- new name of font
-
getFace
Gets the name of the font face, e.g. 'Condensed'
- Returns:
- name of the font face
-
setFace
Sets the name of the font face, e.g. 'Condensed'
- Parameters:
face- name of the font face
-
getStyle
Gets the style of this font variant.
- Returns:
- style of this font variant, either NORMAL or ITALIC
-
setStyle
Sets the style of this font variant, i.e. NORMAL or ITALIC
- Parameters:
style- new style of the font
-
getWeight
Gets the weight of this font variant, e.g. BOLD
- Returns:
- weight of this font variant
-
setWeight
Sets the weight of this font variant, e.g. BOLD
- Parameters:
weight- new weight of this font variant
-
getStretch
Gets the stretch of this font variant, e.g. CONDENSED
- Returns:
- stretch of this font variant
-
setStretch
Sets the stretch of this font variant, e.g. CONDENSED
- Parameters:
stretch- stretch of this font variant
-
merge
Merge definitions of other font variants into this font variant.
Applies style, weight and stretch of another font variant to this font variant.
- Parameters:
other- other font variant- Returns:
- the merged font variant
-