• Post Reply Bookmark Topic Watch Topic
  • New Topic

Font.deriveFont() having no effect?  RSS feed

 
Dan Kao
Greenhorn
Posts: 18
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to load a font from a file, and then make it larger using . I then setFont(someFont); on all my JButtons.
My question is, why does it seem to stay at a tiny 1pt size?
If it may be of any help, it's in an undecorated JFrame that I used in setFullScreenWindow(), and it's a custom font I made.
Thanks
[EDIT] Oops, got it.
 
Alan Mehio
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan,
you said:
and it's a custom font I made
. Try to pick up another font file from your computer by search for *.ttf or post the ButtonFont.ttf so we can look into it and make some test.
It may be the file is corrupt or does not comply with the standard tff file.
How did you creat the "ButtonFont.ttf" ?

If you use a well known font file from you computer do you encount the same issue.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!