• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

font metrics

 
kiruthika
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to write a text in vertical direction. or is there any method to specify the font direction?
 
Ramalingam Vijayakumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If you want to Write a text in vertical direction you got to use the FontMetrics class.
The following are the things that you should do ...
First get the fontmetrics and then get the font height....
whenever you draw usind drawString(str,x,y)...increment the 'y' position according to the font height...
bye,
ram.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic