|

07-18-2008, 05:52 PM
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.
|