• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!