Skip to content

BinaryMsdfSource

final class BinaryMsdfSource
Extends: MsdfSource
Package: dev.joid.lib.font.impl.msdf.source · Module: core · Source: BinaryMsdfSource.java

Reads a face from a .msdf file made by the msdf tool of JOID, with no generation at load time.

Ship .msdf files to skip the generation of the first load. The read fails with IOException when the file does not start with JOIDMSDF or was written in another format version of the tool.

ReturnsSignatureSummary
BinaryMsdfSourceof(Object handle) factoryCreates a source from anything Asset.of accepts: a path, a File, a URL, a stream or an Asset.

Inherited from MsdfSource (2)

italic · weight

ReturnsSignatureSummary
Stringdescribe()Returns read from a .msdf file.
AssetgetAsset()Returns the .msdf file.
Inherited from MsdfSource (1)

read

BinaryMsdfSource of(Object handle) factory

Creates a source from anything Asset.of accepts: a path, a File, a URL, a stream or an Asset.

String describe()

Returns read from a .msdf file.

Asset getAsset()

Returns the .msdf file.


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