public static void main(String[] argv) {
FontProvider<BDFFont> fp = new BDFFontProvider();
Set<? extends Font> obj = fp.getAllFonts();
System.out.println(obj);
final TextRenderer tr = fp.getTextRenderer(obj.iterator().next());
final AffineTransform tf = AffineTransform.getTranslateInstance(0, 0);
JFrame f = new JFrame("BDF Test");
f.add(new JComponent() {
private static final long serialVersionUID = 1L;
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2DSurface gs = new Graphics2DSurface((Graphics2D) g);
tr.render(gs, null, tf, "JNode", 100, 100, Color.BLACK);
}
});
f.setSize(400, 400);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);