-
Non-applet pixel to cm/inch conversion
Hi,
I'm stuck with my java web application where I need to determine the number of character and line of text which can be fitted into a specific size of text area. For example, in a text area of 2inch * 8 inch, how many character of Arial font 12 can be fitted per row? And how many row can the text area fit? To make the situation more complicated, the requirement also allow each line to have different font type and also different font size.
I know Java AWT can convert pixel to cm/inch, but I don't want an applet in my web application as applet will take times to load. Any Java developer out there can help me out?
-
Did you check all apis of imageviewer class?
-
I've gone thru the APIs but couldn't really find what I need. Maybe I miss it out or something. I'll go thru it again but do you happen to know which class actually provide this? If yes, can you kindly throw in some lights? Thanks in advance
Similar Threads
-
Replies: 1
Last Post: 03-26-2006, 02:02 PM
-
By Tataroz T. in forum Java
Replies: 1
Last Post: 10-20-2005, 06:19 AM
-
Replies: 1
Last Post: 10-07-2005, 08:51 AM
-
By Charlie Flynn in forum Java
Replies: 3
Last Post: 08-23-2001, 11:01 AM
-
Replies: 0
Last Post: 03-28-2000, 01:52 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks