Skip to content

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.

ReturnsSignatureSummary
MsdfAtlasof(int width, int height, float size, float distanceRange) factoryCreates 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.

ReturnsSignatureSummary
intgetWidth()Returns the width of the atlas image, in pixels.
intgetHeight()Returns the height of the atlas image, in pixels.
floatgetSize()Returns the em size of the glyphs in the atlas, in pixels.
floatgetDistanceRange()Returns the width of the distance field around each edge, in atlas pixels.

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.

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.


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