get Font Async
Resolves the requested font using the fontFamily, style, and typeface. Immediately (and synchronously) calls onFontRetrieved with the requested font, if it has been resolved already, or onFontRetrievalFailed if requested fontFamily is invalid. Otherwise callback is invoked asynchronously when the font is loaded (or async loading fails). While font is being fetched asynchronously, getFallbackFont can be used as a temporary font.
Parameters
the Context.
callback to notify when font is loaded.
See also
Asynchronously resolves the requested font Typeface using the fontFamily, style, and typeface, and automatically updates given textPaint
using updateTextPaintMeasureState on successful load.
Parameters
The Context.
TextPaint to be updated.
Callback to notify when font is available.