java me - Changing font size in j2me -


can change siz,style,etc of font (javax.microedition.lcdui.font) in j2me

@org.life.java true there isn't set size method..... being said there isn't "setsubstring" method either.

strings fonts in j2me immutable http://en.wikipedia.org/wiki/immutable_object create new font desired properties....

http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/index.html

so instead of

 myfon.setsize(font.size_small) 

do

myfont = font.getfont(myfont.getfontface(), myfont.getfontstyle(), font.size_medium) 

that work.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -