This was working before but I changed something in my project, I'm not
sure what, now it crashes on the last line of this bit.
public static final FopFactory myFopFactory =
FopFactory.newInstance();
TTFFontLoader myTTFLoader;
CustomFont myCustomFont;
FOUserAgent myUserAgent;
myUserAgent = myFopFactory.newFOUserAgent();
FontResolver fontResolver = new DefaultFontResolver(myUserAgent);
InputStream is;
String fontFileURI;
loadFontFileName = "LTYPEB.TTF";
is = getClass().getResourceAsStream("/resources/" +
loadFontFileName);
fontFileURI = DataURLUtil.createDataURL(is, null);
myTTFLoader = new TTFFontLoader(fontFileURI, fontResolver);
myCustomFont = myTTFLoader.getFont();