Example usage for org.apache.pdfbox.cos COSName WIDTHS

List of usage examples for org.apache.pdfbox.cos COSName WIDTHS

Introduction

In this page you can find the example usage for org.apache.pdfbox.cos COSName WIDTHS.

Prototype

COSName WIDTHS

To view the source code for org.apache.pdfbox.cos COSName WIDTHS.

Click Source Link

Usage

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

License:Apache License

List<Integer> getWidths() {
    if (widths == null) {
        COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS);
        if (array != null) {
            widths = COSArrayList.convertIntegerCOSArrayToList(array);
        } else {/*  w ww .j  a  v  a  2 s.  co m*/
            widths = Collections.emptyList();
        }
    }
    return widths;
}