Hi,
I'm using the SWT print API in my RCP application but I'm having some problems.
The prints that I do are very simple, I just print lines of text and I'm setting Courier type to the font so the characters will have the same width.
Basically what I'm doing is this:
Printer printer = new Printer(printerData);
if(printer.startJob("Test")) {
GC gc = new GC(printer);
if(printer.startPage()) {
gc.setFont(new Font(gc.getDevice(), "Courier",7,SWT.NORMAL));
int height = gc.getFontMetrics().getHeight();
gc.drawString("Lorem Ipsum is simply dummy text.", 200, 200);
gc.drawString("Lorem Ipsum is simply dummy text.", 200, 200);
.....
Everything works fine but with some printers the font is ignored, and I can not give the print a format.
I'm using the latest eclipse version 4.3 - keppler to create the application.
Can you help me with this, should I report this as a bug?
Do you have any ideas that could help me to solve this?
Thanks in advance.