Skip to content

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.

ReturnsSignatureSummary
int[]generate(Shape shape, int width, int height, double size, double left, double top, double range) staticReturns 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.

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

Report a problem with this page