MsdfAtlas
final class MsdfAtlas
Package: dev.joid.lib.font.impl.msdf · Module: core · Source: MsdfAtlas.java
The size of an MSDF atlas image, the em size it was generated at and its distance range.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
MsdfAtlas | of(int width, int height, float size, float distanceRange) factory | Creates the description of an atlas of width × height pixels, whose glyphs were generated at size pixels per em with a distance range of distanceRange pixels. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int | getWidth() | Returns the width of the atlas image, in pixels. |
int | getHeight() | Returns the height of the atlas image, in pixels. |
float | getSize() | Returns the em size of the glyphs in the atlas, in pixels. |
float | getDistanceRange() | Returns the width of the distance field around each edge, in atlas pixels. |
Creation details
Section titled “Creation details”MsdfAtlas of(int width, int height, float size, float distanceRange) factory
Creates the description of an atlas of width × height pixels, whose glyphs were generated at size pixels per em with a distance range of distanceRange pixels.
Method details
Section titled “Method details”getWidth
Section titled “getWidth”int getWidth()
Returns the width of the atlas image, in pixels.
getHeight
Section titled “getHeight”int getHeight()
Returns the height of the atlas image, in pixels.
getSize
Section titled “getSize”float getSize()
Returns the em size of the glyphs in the atlas, in pixels.
getDistanceRange
Section titled “getDistanceRange”float getDistanceRange()
Returns the width of the distance field around each edge, in atlas pixels.
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
