Hallo,
I'm working with eclipse on Windows 7 and usually use the default iphone simulator. I've encountered a seemingly simple problem, I wasn't able to solve yet. I tried, really.
How can I change the size of the text of a button?
I'm talking about the system font, doing it manually in the code, really basic. It worked for:
button.getStyle().setFont(Font.createSystemFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_LARGE));
the solution I got from this forum, but it destroyed the rest of the looks of the button. Also it was still too small for my purpose.
I already tried to download a ttf, too, but it doesn't seem to be accepted, through:
if(Font.isTrueTypeFileSupported()) {
Font myFont = Font.createTrueTypeFont("HotSweat", "HotSweat.ttf");
myFont = myFont.derive(36, Font.STYLE_PLAIN);
}
Greets!