* @param context An object that knows how to resolve FO Tree context
* issues.
* @return The font-family property.
*/
public String[] getFontFamily(final FObj fobj, final FoContext context) {
PdFontFamily property = (PdFontFamily) getProperty(
FoProperty.FONT_FAMILY);
if (property != null) {
return property.getValue(context, fobj);
}
// Try the shorthand
final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
if (fontProperty != null) {
property = fontProperty.getFamily();
return property.getValue(context, fobj);
}
return PdFontFamily.getValueNoInstance(context, fobj);
}