/** * The widths of the characters. This will be null for the standard 14 fonts. * * @return The widths of the characters. */ protected final List<Float> getWidths() { if (widths == null) { COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } } return widths; }
public List<Float> getWidths(PDFont font) { List<Float> widths; COSArray array = (COSArray) font.getCOSObject().getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } return widths; }
/** * The widths of the characters. This will be null for the standard 14 fonts. * * @return The widths of the characters. */ protected final List<Float> getWidths() { if (widths == null) { COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } } return widths; }
/** * The widths of the characters. This will be null for the standard 14 fonts. * * @return The widths of the characters. */ protected final List<Float> getWidths() { if (widths == null) { COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } } return widths; }
public List<Float> getWidths(PDFont font) { List<Float> widths; COSArray array = (COSArray) font.getCOSObject().getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } return widths; }
public List<Float> getWidths(PDFont font) { List<Float> widths; COSArray array = (COSArray) font.getCOSObject().getDictionaryObject(COSName.WIDTHS); if (array != null) { widths = COSArrayList.convertFloatCOSArrayToList(array); } else { widths = Collections.emptyList(); } return widths; }