Package limn.backend.spi
Record Class GlyphOutlines.Glyph
java.lang.Object
java.lang.Record
limn.backend.spi.GlyphOutlines.Glyph
- Record Components:
faceId- its face, a numberGlyphOutlines.outline(int, int, limn.graphics.Path2D.Visitor)understandsglyphId- the glyphadvance- how far the next piece starts after it, in ems of the run's font
- All Implemented Interfaces:
GlyphOutlines.Piece
- Enclosing interface:
GlyphOutlines
public static record GlyphOutlines.Glyph(int faceId, int glyphId, float advance)
extends Record
implements GlyphOutlines.Piece
A glyph drawn in place of a character.
-
Constructor Summary
ConstructorsConstructorDescriptionGlyph(int faceId, int glyphId, float advance) Creates an instance of aGlyphrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatadvance()Returns the value of theadvancerecord component.final booleanIndicates whether some other object is "equal to" this one.intfaceId()Returns the value of thefaceIdrecord component.intglyphId()Returns the value of theglyphIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
faceId
public int faceId()Returns the value of thefaceIdrecord component.- Returns:
- the value of the
faceIdrecord component
-
glyphId
public int glyphId()Returns the value of theglyphIdrecord component.- Returns:
- the value of the
glyphIdrecord component
-
advance
public float advance()Returns the value of theadvancerecord component.- Returns:
- the value of the
advancerecord component
-