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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
BinaryMsdfSource | of(Object handle) factory | Creates a source from anything Asset.of accepts: a path, a File, a URL, a stream or an Asset. |
Properties
Section titled “Properties”Inherited from MsdfSource (2)
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
String | describe() | Returns read from a .msdf file. |
Asset | getAsset() | Returns the .msdf file. |
Inherited from MsdfSource (1)
Creation details
Section titled “Creation details”BinaryMsdfSource of(Object handle) factory
Creates a source from anything Asset.of accepts: a path, a File, a URL, a stream or an Asset.
Method details
Section titled “Method details”describe
Section titled “describe”String describe()
Returns read from a .msdf file.
getAsset
Section titled “getAsset”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
