diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-09 23:47:28 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-09 23:47:28 +0000 |
commit | 20551616cddf7691ce42dc2b6ac036d34fdb4fad (patch) | |
tree | 0a825d30cf3a73a719fffdda1b62b00d8f480a05 /test/java | |
parent | ba10485d4aa530fc27ba294a455a7be67559e9be (diff) | |
download | xmlgraphics-fop-20551616cddf7691ce42dc2b6ac036d34fdb4fad.tar.gz xmlgraphics-fop-20551616cddf7691ce42dc2b6ac036d34fdb4fad.zip |
Checkstyle cleanup and javadoc
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654982 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r-- | test/java/org/apache/fop/config/FontsSubstitutionTestCase.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/config/FontsSubstitutionTestCase.java b/test/java/org/apache/fop/config/FontsSubstitutionTestCase.java index f915a2060..6f286a3fb 100644 --- a/test/java/org/apache/fop/config/FontsSubstitutionTestCase.java +++ b/test/java/org/apache/fop/config/FontsSubstitutionTestCase.java @@ -29,8 +29,16 @@ import org.apache.fop.fonts.FontManager; import org.apache.fop.fonts.FontTriplet; import org.apache.fop.render.PrintRenderer; -public class FontsSubstitutionTestCase extends BaseConstructiveUserConfigTestCase { +/** + * Tests the font substitution mechanism + */ +public class FontsSubstitutionTestCase extends + BaseConstructiveUserConfigTestCase { + /** + * Main constructor + * @param name test case name + */ public FontsSubstitutionTestCase(String name) { super(name); } @@ -38,13 +46,16 @@ public class FontsSubstitutionTestCase extends BaseConstructiveUserConfigTestCas /** * {@inheritDoc} */ - protected byte[] convertFO(File foFile, FOUserAgent ua, boolean dumpPdfFile) throws Exception { - PrintRenderer renderer = (PrintRenderer)ua.getRendererFactory().createRenderer(ua, MimeConstants.MIME_PDF); + protected byte[] convertFO(File foFile, FOUserAgent ua, boolean dumpPdfFile) + throws Exception { + PrintRenderer renderer = (PrintRenderer) ua.getRendererFactory() + .createRenderer(ua, MimeConstants.MIME_PDF); FontInfo fontInfo = new FontInfo(); renderer.setupFontInfo(fontInfo); FontManager fontManager = ua.getFactory().getFontManager(); fontManager.setupRenderer(renderer); - FontTriplet triplet = new FontTriplet("Times", "italic", Font.WEIGHT_NORMAL); + FontTriplet triplet = new FontTriplet("Times", "italic", + Font.WEIGHT_NORMAL); String internalFontKey = fontInfo.getInternalFontKey(triplet); // Times italic should now be mapped to the 15th font (custom font) // not the original base 14 (F6) |