Check out example codes for "java.io.IOException: Can't read fonts". It will help you in understanding the concepts better.

Code Example 1

revolution = Font.createFont(Font.TRUETYPE_FONT, getClass().getClassLoader().getResourceAsStream("REVOLUTION.ttf"));

Learn ReactJs, React Native from akashmittal.com