Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

use custom font java

try {
     GraphicsEnvironment ge = 
         GraphicsEnvironment.getLocalGraphicsEnvironment();
     ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, new File("A.ttf")));
} catch (IOException|FontFormatException e) {
     //Handle exception
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #font #java
ADD COMMENT
Topic
Name
7+9 =