Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

draw text with kerning

843807Nov 5 2003 — edited Nov 9 2003
Hi,

I have to create an image using Java. I tryed using:
g.setFont(new Font("Times New Roman",Font.PLAIN,50));

This solution is not good because the font doesn't have the right kerning.

My question is:

How do I draw a text using the right kerning (like in Photoshop)?

Please help me with that.

Thanks,
Andrei Todea (actodea@macrodesign.ro)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2003
Added on Nov 5 2003
4 comments
277 views