File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet and fontmetrics

 
tarun Mehra
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
I am working on a project that requires measuring the fontmetrics and the string width in a servlet. I have already defined the font for my webpage using css. For the purpose of fontmetrics I define the same font using Java(Font f = new Font(...)). When I run the servlet it gives me an error that font not defined in font.properties.
Anybody got any suggestions?
Thank you,
Tarun Mehra.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic