Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

servlet and fontmetrics  RSS feed

 
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
Boost this thread!