Re: dynamic reference to files on server

2005-05-09 Thread Daniel Watrous
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 = "

Re: dynamic reference to files on server

2005-05-06 Thread Dakota Jack
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

dynamic reference to files on server

2005-05-06 Thread Daniel Watrous
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