* @param rangeID One of MINIMUM, OPTIMUM, OR MAXIMUM.
* @return The line-height, in millipoints.
*/
public int getLineHeight(final FObj fobj, final FoContext context,
final LengthRange rangeID) {
PdLineHeight property = (PdLineHeight) getProperty(
FoProperty.LINE_HEIGHT);
if (property != null) {
return property.getValue(context, rangeID, fobj);
}
// Try the shorthand
final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
if (fontProperty != null) {
property = fontProperty.getLineHeight();
return property.getValue(context, rangeID, fobj);
}
return PdLineHeight.getValueNoInstance(context, fobj);
}