Example usage for com.lowagie.text ElementTags FACE

List of usage examples for com.lowagie.text ElementTags FACE

Introduction

In this page you can find the example usage for com.lowagie.text ElementTags FACE.

Prototype

String FACE

To view the source code for com.lowagie.text ElementTags FACE.

Click Source Link

Document

a possible list attribute

Usage

From source file:org.sakaiproject.tool.assessment.pdf.itext.HTMLWorker.java

License:Mozilla Public License

/** Creates a new instance of HTMLWorker */
public HTMLWorker(DocListener document) {
    this.document = document;
    cprops = new ChainedProperties();
    String fontName = ServerConfigurationService.getString("pdf.default.font");
    if (StringUtils.isNotBlank(fontName)) {
        FontFactory.registerDirectories();
        if (FontFactory.isRegistered(fontName)) {
            HashMap fontProps = new HashMap();
            fontProps.put(ElementTags.FACE, fontName);
            fontProps.put("encoding", BaseFont.IDENTITY_H);
            cprops.addToChain("face", fontProps);
        }//from   www.  j  a v  a 2 s  . c  om
    }
}