Skip to content

MsdfWriter

final class MsdfWriter
Package: dev.joid.tool.msdf.atlas · Module: tool-msdf · Source: MsdfWriter.java

Writes a font.msdf file: the face, the metrics, the glyphs, the kerning and the distance field, compressed.

ReturnsSignatureSummary
voidwrite(File file, List glyphs, Kerning kerning, double[] metrics, String name, int weight, boolean italic, double size, double range, int[] pixels, int width, int height) staticWrites the file with its signature, then the version, the weight, the italic flag, the name, the atlas size, the range, the glyph size, the metrics, every glyph, the kerning pairs and the pixels.
TypeNameValueSummary
intVERSION4The version of the file format, part of the cache key of the atlases that JOID generates.

void write(File file, List<GlyphEntry> glyphs, Kerning kerning, double[] metrics, String name, int weight, boolean italic, double size, double range, int[] pixels, int width, int height) static

Writes the file with its signature, then the version, the weight, the italic flag, the name, the atlas size, the range, the glyph size, the metrics, every glyph, the kerning pairs and the pixels. Throws an IOException when the file cannot be written.

int VERSION

The version of the file format, part of the cache key of the atlases that JOID generates.


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