• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font class in awt package  RSS feed

 
Deepa Jeeva
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We are using java.awt.Font class in our application. There is an attribute called 'size' which is actually font size. That is defined as an int variable. We want to use a decimal point size in the application. We want to know if there is any possibility to use point size as decimal.

Please let us know ASAP as its an urgent issue. Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there isn't. Fonts always come in full point sizes, so there's not even a reason for doing so. How would you display fractions of a point on a display that works with pixels?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!