public static boolean installFont( URL url ) {
		try( InputStream in = url.openStream() ) {
			Font font = Font.createFont( Font.TRUETYPE_FONT, in );
			return GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont( font );
		} catch( FontFormatException | IOException ex ) {
			LoggingFacade.INSTANCE.logSevere( "FlatLaf: Failed to install font " + url, ex );
			return false;
		}
	}
Loads a font file from the given url and registers it in the graphics environment.
Uses {@link Font#createFont(int, InputStream)} and {@link GraphicsEnvironment#registerFont(Font)}.
flatlaf-core/src/main/java/com/formdev/flatlaf/util/FontUtils.java