GlyphPlacement
final class GlyphPlacement<F extends IFontFace>
Package: dev.joid.lib.font.impl.glyph · Module: core · Source: GlyphPlacement.java
The place of one character in a GlyphLayout, with the font, the face and the style it draws with.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
GlyphPlacement<F> | of(int index, int codepoint, GlyphFont | Creates the placement of codepoint, found at index of the string, drawn with face of font in style, at x from the start of the line. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getIndex() | Returns the index of the character in the string, markup tags included. |
int | getCodepoint() | Returns the character. |
GlyphFont<F> | getFont() | Returns the GlyphFont that draws the character; a markup can switch it. |
F | getFace() | Returns the face that draws the character. |
double | getX() | Returns the distance from the start of the line to the left edge of the glyph, in design pixels. |
TextStyle | getStyle() | Returns the TextStyle at this character. |
Creation details
Section titled “Creation details”<F extends IFontFace> GlyphPlacement<F> of(int index, int codepoint, GlyphFont<F> font, F face, double x, TextStyle style) factory
Creates the placement of codepoint, found at index of the string, drawn with face of font in style, at x from the start of the line.
Method details
Section titled “Method details”getIndex
Section titled “getIndex”int getIndex()
Returns the index of the character in the string, markup tags included.
getCodepoint
Section titled “getCodepoint”int getCodepoint()
Returns the character.
getFont
Section titled “getFont”GlyphFont<F> getFont()
Returns the GlyphFont that draws the character; a markup can switch it.
getFace
Section titled “getFace”F getFace()
Returns the face that draws the character.
double getX()
Returns the distance from the start of the line to the left edge of the glyph, in design pixels.
getStyle
Section titled “getStyle”TextStyle getStyle()
Returns the TextStyle at this character.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
