Record Class FontFamily
java.lang.Object
java.lang.Record
dev.myriadclient.api.ui.draw.FontFamily
A font family known to the UI renderer. Myriad bundles Noto Sans (regular and semibold) and JetBrains Mono Nerd
Font, whose private-use glyphs give you thousands of icons (see nerdfonts.com/cheat-sheet). Glyphs missing from a
family fall back to the icon font, then to the JVM's default font. Only the constants here are known to the API; a
family with another id draws as
SANS.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FontFamilyJetBrains Mono Nerd Font: numbers that shouldn't jiggle, and icon glyphs (Icons).static final FontFamilyNoto Sans, regular: body text and the theme's default font.static final FontFamilyNoto Sans, semibold: titles and headings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SANS
Noto Sans, regular: body text and the theme's default font. -
SANS_BOLD
Noto Sans, semibold: titles and headings. -
MONO
JetBrains Mono Nerd Font: numbers that shouldn't jiggle, and icon glyphs (Icons).
-
-
Constructor Details
-
FontFamily
Creates an instance of aFontFamilyrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-