Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Font;
import java.io.InputStream;

public class Main {
    public static void main(String[] a) throws Exception {
        String fName = "/fonts/A.ttf";
        InputStream is = Main.class.getResourceAsStream(fName);
        Font font = Font.createFont(Font.TRUETYPE_FONT, is);

    }
}