scale1.add(new RasterViewer(1.0, r));
scale3.add(new RasterViewer(3.0, r));
}
// frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frm.setSize(600, 400);
frm.show();
}
private static Raster renderChar(char ch, TTFFontData fdata, RenderContext ctx)
throws IOException {
final int idx = fdata.getCMapTable().getEncodingTable(0).getTableFormat().getGlyphIndex(ch);