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.
[EDIT] Oops, got it.
. 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.
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!