* @param context An object that knows how to resolve FO Tree context
* issues.
* @return The font-size property.
*/
public int getFontSize(final FObj fobj, final FoContext context) {
PdFontSize property = (PdFontSize) getProperty(FoProperty.FONT_SIZE);
if (property != null) {
return property.getValue(context, fobj);
}
// Try the shorthand
final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
if (fontProperty != null) {
property = fontProperty.getSize();
return property.getValue(context, fobj);
}
return PdFontSize.getValueNoInstance(context, fobj);
}