Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet and fontmetrics

 
tarun Mehra
Greenhorn
Posts: 12
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic