Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static Font getFont() {
- Font font = null;
- try {
- File fontFile = new File("/home/lightsoft/bonprix/hk-grotesk/HKGrotesk-Bold.otf");
- font = Font.createFont(Font.TRUETYPE_FONT, fontFile);
- GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
- ge.registerFont(font);
- }
- catch (Exception ex) {
- }
- return font;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement