private String getFontFamily() {
StyleList listValue = (StyleList) styles
.getStyleValue(StylePropertyDetails.FONT_FAMILY);
if (listValue != null && listValue.getList() != null) {
Iterator i = listValue.getList().iterator();
ReusableStringBuffer buffer = new ReusableStringBuffer();
while (i.hasNext()) {
StyleValue value = (StyleValue) i.next();
context.setKeywordMapper(getFontFamilyKeywordMapper());
if (buffer.length() == 0) {
buffer.append(context.getRenderValue(value));
} else {
buffer.append(", ").append(context.getRenderValue(value));
}
}
return (buffer.length() == 0 ? null : buffer.toString());
}
return null;
}