我也面临同样的情况,我为每个分辨率定制了字体系列。例如
if (Display.getWidth()==480 && Display.getHeight()==360) {
_custHeadNews = new CustTextField(_newsHead,30,0x05235b,TextField.FOCUSABLE);
_custMainNews = new CustTextField(_newsMain,25,0x666666, RichTextField.FOCUSABLE);
_custMetadata = new CustTextField(_metaData,15,0x666666,TextField.FOCUSABLE);
}
else if (Display.getWidth()==320 && Display.getHeight()==240) {
_custHeadNews = new CustTextField(_newsHead,25,0x05235b,TextField.FOCUSABLE);
_custMainNews = new CustTextField(_newsMain,15,0x666666, RichTextField.FOCUSABLE);
_custMetadata = new CustTextField(_metaData,10,0x666666,TextField.FOCUSABLE);
}
不同分辨率的粗体字号。