if( fontResource != null )
{
retval = (TrueTypeFont)loadedExternalFonts.get( baseFont );
if( retval == null )
{
TTFParser ttfParser = new TTFParser();
InputStream fontStream = ResourceLoader.loadResource( fontResource );
if( fontStream == null )
{
throw new IOException( "Error missing font resource '" + externalFonts.get(baseFont) + "'" );
}
retval = ttfParser.parseTTF( fontStream );
loadedExternalFonts.put( baseFont, retval );
}
}
}