GlyphLayout
final class GlyphLayout<F extends IFontFace>
Package: dev.joid.lib.font.impl.glyph · Module: core · Source: GlyphLayout.java
A string laid out on one line, as the list of its glyph placements and its width.
Description
Section titled “Description”GlyphTextRenderer.layout builds it: markup tags read, faces resolved, kerning and letter spacing applied.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
GlyphLayout<F> | of(List<GlyphPlacement | Creates a layout from its placements and its width. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
List<GlyphPlacement<F>> | getPlacements() | Returns the placements, in the order of the string, as a list you cannot change; characters that the face cannot draw are left out, except spaces. |
double | getWidth() | Returns the width of the line in design pixels, without the letter spacing after the last glyph. |
Creation details
Section titled “Creation details”<F extends IFontFace> GlyphLayout<F> of(List<GlyphPlacement<F>> placements, double width) factory
Creates a layout from its placements and its width.
Method details
Section titled “Method details”getPlacements
Section titled “getPlacements”List<GlyphPlacement<F>> getPlacements()
Returns the placements, in the order of the string, as a list you cannot change; characters that the face cannot draw are left out, except spaces.
getWidth
Section titled “getWidth”double getWidth()
Returns the width of the line in design pixels, without the letter spacing after the last glyph.
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
