React Font Manager
Responsible for loading and caching Typeface objects.
This will first try to load a typeface from the assets/fonts folder. If one is not found in that folder, this will fallback to the best matching system typeface.
Custom fonts support the extensions .ttf
and .otf
and the variants bold
, italic
, and bold_italic
. For example, given a font named "ExampleFontFamily", the following are supported:
ExampleFontFamily.ttf (or .otf)
ExampleFontFamily_bold.ttf (or .otf)
ExampleFontFamily_italic.ttf (or .otf)
ExampleFontFamily_bold_italic.ttf (or .otf)
Types
Responsible for normalizing style and numeric weight for backward compatibility.
Functions
Equivalent method to {@see addCustomFont(Context, String, int)} which accepts a Typeface object.
Add additional font family, or replace the exist one in the font memory cache.