S
Sameer
Hello,
I created a font using a font file say font.ttf using the method
Font.createFont(int, InputStream).
The default point size for the created font is 1.
This can be verified by typing the font object to console.
It looks like..
java.awt.Font[family=Shivaji01,name=Shivaji01,style=plain,size=1]
Then I used the method deriveFont(int,float) on it and I had given a
sizeble point, still this method can not change the point size of the
font.
After deriveFont method used I am still getting on console as
java.awt.Font[family=Shivaji01,name=Shivaji01,style=plain,size=1]
I am using JDK1.5.0. Update 1.
Why is it so?
I have posted this question on many forums but coudn't get the answer.
Is this a bug?
Please help meee.
-Sameer
I created a font using a font file say font.ttf using the method
Font.createFont(int, InputStream).
The default point size for the created font is 1.
This can be verified by typing the font object to console.
It looks like..
java.awt.Font[family=Shivaji01,name=Shivaji01,style=plain,size=1]
Then I used the method deriveFont(int,float) on it and I had given a
sizeble point, still this method can not change the point size of the
font.
After deriveFont method used I am still getting on console as
java.awt.Font[family=Shivaji01,name=Shivaji01,style=plain,size=1]
I am using JDK1.5.0. Update 1.
Why is it so?
I have posted this question on many forums but coudn't get the answer.
Is this a bug?
Please help meee.
-Sameer