Skip to content

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.

ReturnsSignatureSummary
GlyphPlacement<F>of(int index, int codepoint, GlyphFont font, F face, double x, TextStyle style) factoryCreates 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.

ReturnsSignatureSummary
intgetIndex()Returns the index of the character in the string, markup tags included.
intgetCodepoint()Returns the character.
GlyphFont<F>getFont()Returns the GlyphFont that draws the character; a markup can switch it.
FgetFace()Returns the face that draws the character.
doublegetX()Returns the distance from the start of the line to the left edge of the glyph, in design pixels.
TextStylegetStyle()Returns the TextStyle at this character.

<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.

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.


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

Report a problem with this page