Skip to content

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.

MsdfGlyph holds two: its plane bounds around the origin of the glyph, and its atlas bounds in the image.

ReturnsSignatureSummary
MsdfBoundsof(float left, float bottom, float right, float top) factoryCreates the rectangle from its left, bottom, right and top edges.

ReturnsSignatureSummary
floatgetLeft()Returns the left edge.
floatgetBottom()Returns the bottom edge.
floatgetRight()Returns the right edge.
floatgetTop()Returns the top edge.
StringtoString()Returns the four edges, for logs.

MsdfBounds of(float left, float bottom, float right, float top) factory

Creates the rectangle from its left, bottom, right and top edges.

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.


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