サイズ 150kb のカスタム フォントをロードしたいのですが、EXCEEDS_LIMIT エラーが発生し、以下のコンソールに "EXCEEDS_LIMIT" と出力されるコードで、ttf サイズを縮小しようとしましたが、失敗しました。
LabelField helloWorld = new LabelField("Hello World");
int res = FontManager.getInstance().load("PageD1.TTf", "MyFont",
FontManager.EXCEEDS_LIMIT);
if (res == FontManager.SUCCESS) {
try {
FontFamily family = FontFamily.forName("MyFont");
Font myFont = family.getFont(Font.PLAIN, 50);
helloWorld.setFont(myFont);
} catch (ClassNotFoundException e) {
System.out.println(e.getMessage());
}
} else if (res == FontManager.EXCEEDS_LIMIT) {
System.out.println("EXCEEDS_LIMIT");
}
add(helloWorld);