/** * Gets the leading of this phrase. * * @return the linespacing */ public float getLeading() { if (Float.isNaN(leading) && font != null) { return font.getCalculatedLeading(1.5f); } return leading; }
/** * Gets the leading of this phrase. * * @return the linespacing */ public float getLeading() { if (Float.isNaN(leading) && font != null) { return font.getCalculatedLeading(1.5f); } return leading; }
/** * Gets the total leading. * This method is based on the assumption that the * font of the Paragraph is the font of all the elements * that make part of the paragraph. This isn't necessarily * true. * @return the total leading (fixed and multiplied) */ public float getTotalLeading() { float m = font == null ? Font.DEFAULTSIZE * multipliedLeading : font.getCalculatedLeading(multipliedLeading); if (m > 0 && !hasLeading()) { return m; } return getLeading() + m; }
/** * Gets the total leading. * This method is based on the assumption that the * font of the Paragraph is the font of all the elements * that make part of the paragraph. This isn't necessarily * true. * @return the total leading (fixed and multiplied) */ public float getTotalLeading() { float m = font == null ? Font.DEFAULTSIZE * multipliedLeading : font.getCalculatedLeading(multipliedLeading); if (m > 0 && !hasLeading()) { return m; } return getLeading() + m; }