File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet and fontmetrics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet and fontmetrics" Watch "servlet and fontmetrics" New topic

servlet and fontmetrics

tarun Mehra

Joined: May 30, 2001
Posts: 12
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
Anybody got any suggestions?
Thank you,
Tarun Mehra.
It is sorta covered in the JavaRanch Style Guide.
subject: servlet and fontmetrics
Similar Threads
Graphics Objects(URGENT)
How to measure a character width with a Font?
Word Wrapping in Canvas !!!
Centering text on object drawn with Graphics