Example usage for org.apache.pdfbox.pdmodel.font.encoding Encoding getName

List of usage examples for org.apache.pdfbox.pdmodel.font.encoding Encoding getName

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.font.encoding Encoding getName.

Prototype

public String getName(int code) 

Source Link

Document

This will take a character code and get the name from the code.

Usage

From source file:org.apache.fop.render.pdf.pdfbox.FOPPDFSingleByteFont.java

License:Apache License

private String getChar(Object cmap, int i) throws IOException {
    if (cmap instanceof CMap) {
        CMap c = (CMap) cmap;/*  w w w  . ja  va 2  s . c  o  m*/
        return c.toUnicode(i);
    }
    Encoding enc = (Encoding) cmap;
    return enc.getName(i);
}