hi
i hv set the default font of a application as :
Code:
FontFamily fontFamily[] = FontFamily.getFontFamilies();
Font font = fontFamily[5].getFont(FontFamily.SCALABLE_FONT,11);
Font.setDefaultFont(font);
But after setting this i wanted to change the font size of some of the labels and i did it as follows:
Code:
Font font1 = fontFamily[5].getFont(FontFamily.SCALABLE_FONT,11);
font1.derive(Font.UNDERLINED);
LabelField lt2 = new LabelField("Enjoy ur Holiday ");
lt2.setFont(font1);
Now, the lt2 label does not show the current font font1, it always shows the default font.
Does anyone know wat mistake i hv done here. plz tell me.
Thanks in advance