Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Class.getClass().getRessourceAsStream("/de/tutorials/java/beispiel/SansSerif");
InputStream is = DemoFonts.class.getResourceAsStream("fileName");
font = Font.createFont(Font.TRUETYPE_FONT, is);
try
{
Font font = Font.createFont(Font.TRUETYPE_FONT,
Demo.class.getResourceAsStream("resources/crackedJohnnie.ttf"));
GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(font)
}
catch(FontFormatException e)
{
e.printStackTrace();
}
catch(IOException e)
{
e.printStackTrace();
}