Using font created by createFont(int, InputStream)
Hello,
I have created a font using a TTF font file as follows:
FileInputStream fis = new FileInputStream("font.ttf"]);
f = Font.createFont(Font.TRUETYPE_ÂFONT, fis);
If I create instance of this font and apply this to a textfield using
setFont method,the displayed text in the text field is too small that
we cant see it (this is not matter with a label).
If we apply the method deriveFont(int size) to font before passing it
to setFont and giving a large value of size, it won't work and we can't
see it. The text displayed to toooo small.
How to overcome this problem? Any suggestions?
-Sameer
|