IMsdfSource
interface IMsdfSource
Known subtypes: MsdfSource
Package: dev.joid.lib.font.impl.msdf.source · Module: core · Source: IMsdfSource.java
A source that reads one MsdfFontFace, from a font file or from anything else.
Description
Section titled “Description”Pass one to MsdfFontLoader.load in place of a file.
Extend MsdfSource rather than implementing this interface, so that weight(...) and italic(...) work on your source too.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
MsdfFontFace | read() abstract | JOID calls it on a loader thread, never on the render thread: read the face and return it. |
String | describe() default | Returns how the face was read, for the line that dev mode logs after the load; by default the name of the source class. |
Method details
Section titled “Method details”MsdfFontFace read() abstract
JOID calls it on a loader thread, never on the render thread: read the face and return it.
Throw IOException when it cannot be read; the future of the loader then completes exceptionally.
describe
Section titled “describe”String describe() default
Returns how the face was read, for the line that dev mode logs after the load; by default the name of the source class.
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
