From 20551616cddf7691ce42dc2b6ac036d34fdb4fad Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Fri, 9 May 2008 23:47:28 +0000 Subject: Checkstyle cleanup and javadoc git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654982 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/fop/config/FontsSubstitutionTestCase.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'test/java') 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) -- cgit v1.2.3