Msdf
final class Msdf
Package: dev.joid.tool.msdf.geometry · Module: tool-msdf · Source: Msdf.java
Computes the multi-channel signed distance field of an outline.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
int[] | generate(Shape shape, int width, int height, double size, double left, double top, double range) static | Returns the RGB pixels of the field of that size, at that glyph size in pixels per em, from that top-left corner in ems, with distances mapped over that range in pixels. |
Method details
Section titled “Method details”generate
Section titled “generate”int[] generate(Shape shape, int width, int height, double size, double left, double top, double range) static
Returns the RGB pixels of the field of that size, at that glyph size in pixels per em, from that top-left corner in ems, with distances mapped over that range in 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
