Closed deano2390 closed 5 years ago
typical usage might be like so:
File fontFile = new File("regular.ttf");
Typeface font = Typeface.createFromFile(fontFile);
TypefaceUtils.installFont("regular", font);
and then in your layout:
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" fontPath="regular"/>
just realised pull request #17 pretty much solves the same issue in another way!
let's go with #17 instead
the motive here was to allow me to load fonts from the file system rather than the assets folder