fontWidth = fontWidthF.floatValue();
}
else
{
//hmm should this be in a subclass??
COSInteger firstChar = (COSInteger)font.getDictionaryObject( COSName.FIRST_CHAR );
COSInteger lastChar = (COSInteger)font.getDictionaryObject( COSName.LAST_CHAR );
if( firstChar != null && lastChar != null )
{
long first = firstChar.intValue();
long last = lastChar.intValue();
if( code >= first && code <= last && font.getDictionaryObject( COSName.WIDTHS ) != null )
{
COSArray widthArray = (COSArray)font.getDictionaryObject( COSName.WIDTHS );
COSNumber fontWidthObject = (COSNumber)widthArray.getObject( (int)(code - first) );
fontWidth = fontWidthObject.floatValue();