Hi! i read somewhere that the system's fonts resizes itself depending on 
the device resolution. 

because i want to reproduce that beheavior i do the following code, but im 
not sure if im doing well or i need to consider another device circunstance:

my code is:

       fontSmallSize = (int) (Font.createSystemFont(Font.FACE_SYSTEM, 
Font.STYLE_PLAIN, Font.SIZE_SMALL).getHeight());
        fontMediumSize = (int) (Font.createSystemFont(Font.FACE_SYSTEM, 
Font.STYLE_PLAIN, Font.SIZE_MEDIUM).getHeight());
        fontLargeSize = (int) (Font.createSystemFont(Font.FACE_SYSTEM, 
Font.STYLE_PLAIN, Font.SIZE_LARGE).getHeight());


thanks


If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/a70d63aa-a546-4939-a6e6-83f8f0c87240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to