デフォルト・モノスペース・フォントのオーバーライド
このコード例では、ホスト画面が 132 列の場合、標準の 80 の代わりに、より小さいフォント・サイズが使用されます。
public Font getDefaultMonospacedFont() {
if (getHostScreen() != null) {
if (getHostScreen().getSizeCols() == 132) {
return FontManager.getInstance(getDisplay()).getFont("Courier New", 8, 0);
}
}
return null;
}