package jexer.backend;
import java.awt.Font;
+import java.awt.FontFormatException;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
InputStream in = loader.getResourceAsStream(filename);
fontRoot = Font.createFont(Font.TRUETYPE_FONT, in);
font = fontRoot.deriveFont(Font.PLAIN, fontSize - 2);
- } catch (java.awt.FontFormatException e) {
+ } catch (FontFormatException e) {
// Ideally we would report an error here, either via System.err
// or TExceptionDialog. However, I do not want GlyphMaker to
// know about available backends, so we quietly fallback to
// whatever is available as MONO.
font = new Font(Font.MONOSPACED, Font.PLAIN, fontSize - 2);
- } catch (java.io.IOException e) {
+ } catch (IOException e) {
// See comment above.
font = new Font(Font.MONOSPACED, Font.PLAIN, fontSize - 2);
}