I'm sending my solution to my original post:
// Here I get the ClassLoader specific to this web application
java.lang.ClassLoader loader =
com.words2walls.customquote.QuoteFontType.class.getClassLoader();
// This is the package specific reference to the font (or resource)
String pathToFontFile = "
Your code looks pretty good. What is the trouble? Do you have
something like the following?
fontStream = new FileInputStream(file);
font = Font.createFont(Font.TRUETYPE_FONT,fontStream);
font = font.deriveFont(attributes);
where attributes sets the logical and family font nam
Hello,
I am writing an application which needs to load font files. The font
files are deployed with other classes on the server (i.e. under the
WEB-INF/classes directory). Currently I have the reference built in
like this
//private static final String pathToWebapp =
"/var/tomcat/jakarta-to