MsdfBounds
final class MsdfBounds
Package: dev.joid.lib.font.impl.msdf · Module: core · Source: MsdfBounds.java
A rectangle of an MSDF glyph, either on 1 of the em with Y up or in pixels of the atlas.
Description
Section titled “Description”MsdfGlyph holds two: its plane bounds around the origin of the glyph, and its atlas bounds in the image.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
MsdfBounds | of(float left, float bottom, float right, float top) factory | Creates the rectangle from its left, bottom, right and top edges. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | getLeft() | Returns the left edge. |
float | getBottom() | Returns the bottom edge. |
float | getRight() | Returns the right edge. |
float | getTop() | Returns the top edge. |
String | toString() | Returns the four edges, for logs. |
Creation details
Section titled “Creation details”MsdfBounds of(float left, float bottom, float right, float top) factory
Creates the rectangle from its left, bottom, right and top edges.
Method details
Section titled “Method details”getLeft
Section titled “getLeft”float getLeft()
Returns the left edge.
getBottom
Section titled “getBottom”float getBottom()
Returns the bottom edge.
getRight
Section titled “getRight”float getRight()
Returns the right edge.
getTop
Section titled “getTop”float getTop()
Returns the top edge.
toString
Section titled “toString”String toString()
Returns the four edges, for logs.
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
