242243244245246247248249250251252
{ COSArray array = (COSArray)next; for( int j=0; j<array.size(); j++ ) { COSNumber width = (COSNumber)array.get( j ); totalWidths+=width.floatValue(); characterCount += 1; } } else {
250251252253254255256257258259260
} else { i++; COSNumber rangeWidth = (COSNumber)widths.getObject( i ); if( rangeWidth.floatValue() > 0 ) { totalWidths += rangeWidth.floatValue(); characterCount += 1; } }
252253254255256257258259260261262
{ i++; COSNumber rangeWidth = (COSNumber)widths.getObject( i ); if( rangeWidth.floatValue() > 0 ) { totalWidths += rangeWidth.floatValue(); characterCount += 1; } } } }
258259260261262263264265266267268
if( widths != null ) { for( int i=0; i<widths.size(); i++ ) { COSNumber fontWidth = (COSNumber)widths.getObject( i ); if( fontWidth.floatValue() > 0 ) { totalWidth += fontWidth.floatValue(); characterCount += 1; } }
260261262263264265266267268269270
for( int i=0; i<widths.size(); i++ ) { COSNumber fontWidth = (COSNumber)widths.getObject( i ); if( fontWidth.floatValue() > 0 ) { totalWidth += fontWidth.floatValue(); characterCount += 1; } } }
157158159160161162163164165166167
int startRange = firstCode.intValue(); int arraySize = array.size(); for (int i=0; i<arraySize; i++) { COSNumber width = (COSNumber)array.get(i); widthCache.put(startRange+i, width.floatValue()); } } else { COSNumber secondCode = (COSNumber)next;
166167168169170171172173174175176
{ COSNumber secondCode = (COSNumber)next; COSNumber rangeWidth = (COSNumber)widths.getObject( counter++ ); int startRange = firstCode.intValue(); int endRange = secondCode.intValue(); float width = rangeWidth.floatValue(); for (int i=startRange; i<=endRange; i++) { widthCache.put(i,width); } } }