public static void main(String[] args) {
// step 1
LwgDocument document = new LwgDocument(LwgPageSize.A4, 50, 50, 50, 50);
try {
// step 2
PdfWriter.getInstance(document, new GfrFileOutputStream("com.lowagie.examples.fonts.getting.OpenTypeFont.pdf"));
// step 3
document.open();
// step 4
BaseFont bf = BaseFont.createFont("liz.otf", BaseFont.CP1252, true);
String text = "Some text with the otf font LIZ.";