code: public LOADSTATUS loadFont(InputStream in, String extension) throws IOException, VectorPrintException {
        // first download, then load
        File f = File.createTempFile("font.", extension);
        f.deleteOnExit();
        IOHelper.load(in, new FileOutputStream(f), ReportConstants.DEFAULTBUFFERSIZE, true);
        return loadFont(f.getPath());
     }
docs: allows loading font from a stream by first saving the bytes from the stream to a tempfile and then calling
  {@link #loadFont(java.lang.String)  }.
  
  @param in
  @param extension e.g. .ttf
  @return
  @throws IOException