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.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | write(File file, List | 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. |
Constants and fields
Section titled “Constants and fields”| Type | Name | Value | Summary |
|---|---|---|---|
int | VERSION | 4 | The version of the file format, part of the cache key of the atlases that JOID generates. |
Method details
Section titled “Method details”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.
Constant and field details
Section titled “Constant and field details”VERSION
Section titled “VERSION”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
