07-18-2008, 05:52 PM
|
#3 (permalink)
|
| New Member
Join Date: Jul 2008 Model: 8800 PIN: N/A Carrier: MTS
Posts: 9
Post Thanks: 0 Thanked 0 Times in 0 Posts
| Thank you.
I am still trying to figure out how to use SetFont. It takes a Font object as a parameter, but from my understanding you can use FontFamly.GetFontFamilies to retrieve a suitable font.
I know how to do this with an array type such as:
FontFamily fontfam[] = FontFamily.getFontFamilies();
Font fon[] = new Font[2];
Font afont = Font;
fon[0] = fontfam[0].getFont(FontFamily.SCALABLE_FONT|Font.ITALIC, 18);
fon[1] = fontfam[1].getFont(FontFamily.SCALABLE_FONT, 24);
This also works for adding Italics.
I guess Im wondering if there is an easier way. |
| Offline
| |