Hello,
Iget a NullPointerException when i try to register � new font wit FontFactory
code:
FontFactory.register("../fonts/edmunds.ttf");

The font is in that location, I am absolutely sure :)

What I am trying to achieve, is to write a specific piece of text, with a certain font, at a fixed place on the page.
code:
Font font = FontFactory.getFont("Edmunds", BaseFont.WINANSI, 12);
this.writeHandle.beginText();
this.writeHandle.setFontAndSize(font.getBaseFont(), fontSize);
this.writeHandle.showTextAligned(align, text, millimetersToPoints(x), millimetersToPoints(y), 0);
this.writeHandle.endText();

This works.. kind of. The pdf gets written, but the fonts look nothing like they are supposed to (It's basically Helvetica squeezed together)

Does anyone have any ideas?

Thanks


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to