How to use custom TrueType Fonts with Java, JSP or servlets?
Our Java hosting clients happen to require custom font for their dynamically generated images or reports. Basically, there are 2 methods of making new TTF fonts available to your servlets or JSP - installing in JDK directory tree or outside of it. The methods and their variants will be described below in more details with examples. Installation outside of JDK tree. This is preferred method as you can embed the font files inside your application (.war or .jar) and do not depend on what fonts are provided by the JVM your application is running in or underlying OS. You can also place fonts in a subdirectory of your home directory. The fonts can be loaded on the fly. Optionally - when you request the install on our side - we can choose to install the font system-wide so that any JDK can see it. Example of a font already installed this way on our shared java hosting servers is Bitstream Vera that can be used (in a slanted variant in this example) simply by calling its name...
Released: Wednesday, January 4, 2012 13:59 UTC Type of news: Good Reporter type
Author: jvmhost
I like it / I don’t like it Save Report
Related news
- Software Companies
- I am a a Custom software developer possessing lots of years of experience in Custom software development business. Currently I am a doing job a Custom software Consultant in Sydney....
Tuesday, May 15, 2012 UTC - Custom Challenge Coins
- Custom Challenge Coins offers the widest array of choices for custom challenge coins, personalized challenge coins, customized coins, promotional coins, commemorative coins, custom...
Saturday, May 12, 2012 UTC - Custom Oval Stickers: A Great Marketing Solution
- Custom stickers are advanced and elevated marketing way of most of the businesses. They are excellent, exquisite and marvelous custom stickers. The dazzling and outstanding custom...
Tuesday, October 18, 2011 UTC - Indonesia train crash kills 36, injures many
- A crash involving two trains in central Indonesia Saturday killed 36 people and injured 26, officials said. The crash occurred when a train traveling from Semarang in Central Java...
Saturday, October 2, 2010 UTC

http://...
Tuesday, January 31, 2012 02:55 UTC
Only registered users can comment. Register!