Record Class SyFontDescription
java.lang.Object
java.lang.Record
com.io7m.jsycamore.api.text.SyFontDescription
- Record Components:
family- The font family, such as "IBM Plex Sans Mono"style- The font stylesize- The font size
A font description.
-
Constructor Summary
ConstructorsConstructorDescriptionSyFontDescription(String family, SyFontStyle style, int size) A font description. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.Produce an identifier for this font, such as "IBM Plex Sans Mono Bold 16".intsize()Returns the value of thesizerecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyFontDescription
A font description.- Parameters:
family- The font family, such as "IBM Plex Sans Mono"style- The font stylesize- The font size
-
-
Method Details
-
identifier
Produce an identifier for this font, such as "IBM Plex Sans Mono Bold 16".- Returns:
- An identifier for this font
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
family
-
style
-
size
-