/**
* 获取系统字体大小
*
* @return 1:正常 ;1.5:超大
*/
public static float getFontSize() {
Configuration mCurConfig = new Configuration();
try {
mCurConfig.updateFrom(ActivityManagerNative.getDefault().getConfiguration());
} catch (RemoteException e) {
Log.w(TAG, "Unable to retrieve font size");
}
Log.w(TAG, "getFontSize(), Font size is " + mCurConfig.fontScale);
return mCurConfig.fontScale;
}