diff options
Diffstat (limited to 'src/org/apache/fop/render/pdf/PDFRenderer.java')
-rw-r--r-- | src/org/apache/fop/render/pdf/PDFRenderer.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index cedd387c3..9633c6b3e 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -266,13 +266,7 @@ public class PDFRenderer extends PrintRenderer { FontState fs = null; - List props = word.getTraitList(); - for(int count = 0; count < props.size(); count++) { - Trait pro = (Trait)props.get(count); - if(pro.propType == Trait.FONT_STATE) { - fs = (FontState)pro.data; - } - } + fs = (FontState)word.getTrait(Trait.FONT_STATE); String name = fs.getFontName(); int size = fs.getFontSize(); |