Thread: Font question
View Single Post
  #2 (permalink)  
Old 08-01-2007, 03:03 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
If you know the size (width and height) you want for each glyph/letter you can get a pretty good fit by scaling the font with an AffineTransform.
Code:
AffineTransform at = AffineTransform... g2.setFont(font.deriveFont(at)); g2.draw...
Reply With Quote