Check out example codes for "Howow to use font object Java". It will help you in understanding the concepts better.

Code Example 1

Font smallFont = new Font("Monospaced", Font.PLAIN, 10);  
Font bigFont = new Font("Serif", Font.BOLD, 18);

Learn ReactJs, React Native from akashmittal.com