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