Example usage for org.apache.pdfbox.pdmodel.font PDFont toString

List of usage examples for org.apache.pdfbox.pdmodel.font PDFont toString

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.font PDFont toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:org.qi4j.envisage.print.PDFWriter.java

License:Apache License

private void setFont(PDFont font, float fontSize) {
    curFont = font;/*w w w  . j a  v a 2s  .  c o m*/
    curFontSize = fontSize;
    try {
        curContentStream.setFont(curFont, curFontSize);
    } catch (IOException e) {
        throw new PrintingException("Unable to set font: " + font.toString() + ", " + fontSize + "pt", e);
    }
}