Skip to content

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.

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.

ReturnsSignatureSummary
MsdfFontFaceread() abstractJOID calls it on a loader thread, never on the render thread: read the face and return it.
Stringdescribe() defaultReturns how the face was read, for the line that dev mode logs after the load; by default the name of the source class.

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.

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

Report a problem with this page