Return-Path: X-Original-To: apmail-xmlgraphics-fop-commits-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 447BE105B5 for ; Mon, 29 Jul 2013 21:46:00 +0000 (UTC) Received: (qmail 53703 invoked by uid 500); 29 Jul 2013 21:46:00 -0000 Delivered-To: apmail-xmlgraphics-fop-commits-archive@xmlgraphics.apache.org Received: (qmail 53675 invoked by uid 500); 29 Jul 2013 21:46:00 -0000 Mailing-List: contact fop-commits-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-dev@xmlgraphics.apache.org Delivered-To: mailing list fop-commits@xmlgraphics.apache.org Received: (qmail 53668 invoked by uid 99); 29 Jul 2013 21:46:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 21:46:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 21:45:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 155F1238890D; Mon, 29 Jul 2013 21:45:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1508208 [1/10] - in /xmlgraphics/fop/branches/Temp_FopFontsForSVG: ./ lib/ src/codegen/fonts/ src/java/org/apache/fop/afp/ src/java/org/apache/fop/afp/fonts/ src/java/org/apache/fop/afp/goca/ src/java/org/apache/fop/afp/svg/ src/java/org/a... Date: Mon, 29 Jul 2013 21:45:23 -0000 To: fop-commits@xmlgraphics.apache.org From: vhennebert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130729214527.155F1238890D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vhennebert Date: Mon Jul 29 21:45:20 2013 New Revision: 1508208 URL: http://svn.apache.org/r1508208 Log: Directly use FOP fonts to lay out SVG images for PDF, PS and AFP outputs. The metrics are now taken from FOP configured fonts and no longer from AWT equivalents. That avoids discrepancies in case AWT and FOP use slightly different fonts, or if the font is not installed on the system. That actually also avoids having to install the font on the system. FOP is also used for the primary layout of text (prior to SVG-specific transforms like translation or rotation) for consistency between SVG and XSL-FO. This is a joint work from Peter Hancock and myself. Added: xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-trunk-patch1041.jar - copied, changed from r1508203, xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-1.7.jar xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/IntegerKeyStore.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/svg/AFPFontFamilyResolver.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/GlyphMapping.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/TextFragment.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/AggregatingFontFamilyResolver.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FOPFontFamilyResolver.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FOPFontFamilyResolverImpl.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FOPGVTFont.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FOPGVTFontFamily.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FOPGVTGlyphVector.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/font/FilteringFontFamilyResolver.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/afp/fonts/IntegerKeyStoreTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/type1/underline.afm xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/NativeTextPainterTest.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/OperatorValidator.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/PDFTextPainterTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/PSTextPainterTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/baseline-shift.svg xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/dx-dy.svg xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/ xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/BasicGlyphVectorTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/FOPFontFamilyResolverTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/FOPGVTFontTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/FOPGVTGlyphVectorTest.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/FontInfoBuilder.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/font/GlyphLayoutTestCase.java (with props) xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/glyph-orientation.svg xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/rotated-glyph.svg xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/svg/spacing.svg Removed: xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-1.7.jar xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/svg-fonts.fo Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/build.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Courier.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBold.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBoldOblique.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierOblique.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Helvetica.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/HelveticaBold.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/HelveticaBoldOblique.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/HelveticaOblique.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Symbol.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/TimesBold.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/TimesBoldItalic.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/TimesItalic.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/TimesRoman.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/ZapfDingbats.xml xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/font-file.xsl xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/AFPEventProducer.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/AFPFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/AbstractOutlineFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/CharacterSet.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/CharacterSetBuilder.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/CharacterSetOrientation.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/DoubleByteFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/FopCharacterSet.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/OutlineFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/fonts/RasterFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/svg/AFPBridgeContext.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/svg/AFPTextHandler.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/afp/svg/AFPTextPainter.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fo/FOText.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/Base14Font.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/CIDFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/CustomFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/FontInfo.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/FontMetrics.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/LazyFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/MultiByteFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/SingleByteFont.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/truetype/TTFFile.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/type1/AFMCharMetrics.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/fonts/type1/Type1FontLoader.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/image/loader/batik/ImageConverterSVG2G2D.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/image/loader/batik/PreloaderSVG.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/AbstractGenericSVGHandler.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/afp/AFPSVGHandler.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/java2d/CustomFontMetricsMapper.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/java2d/Java2DFontMetrics.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/java2d/Java2DSVGHandler.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/java2d/SystemFontMetricsMapper.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/ps/AbstractPSTranscoder.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/ps/PSImageHandlerSVG.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/ps/PSSVGHandler.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/render/ps/PSTextPainter.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/ACIUtils.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/AbstractFOPTextPainter.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/AbstractFOPTranscoder.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/NativeTextPainter.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/PDFTextPainter.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/PDFTextUtil.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/PDFTranscoder.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/SVGUserAgent.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/java/org/apache/fop/svg/SimpleSVGUserAgent.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/DejaVuLGCSerifTestCase.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/FontEventProcessingTestCase.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/truetype/TTFFileTestCase.java xmlgraphics/fop/branches/Temp_FopFontsForSVG/test/java/org/apache/fop/fonts/type1/AFMParserTestCase.java Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/build.xml URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/build.xml?rev=1508208&r1=1508207&r2=1508208&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_FopFontsForSVG/build.xml (original) +++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/build.xml Mon Jul 29 21:45:20 2013 @@ -565,11 +565,13 @@ list of possible build targets. + + @@ -579,6 +581,7 @@ list of possible build targets. + @@ -647,7 +650,8 @@ list of possible build targets. - + + @@ -709,6 +713,7 @@ list of possible build targets. + Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml?rev=1508208&r1=1508207&r2=1508208&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml (original) +++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/findbugs-exclude.xml Mon Jul 29 21:45:20 2013 @@ -1,6 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Copied: xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-trunk-patch1041.jar (from r1508203, xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-1.7.jar) URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-trunk-patch1041.jar?p2=xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-trunk-patch1041.jar&p1=xmlgraphics/fop/branches/Temp_FopFontsForSVG/lib/batik-all-1.7.jar&r1=1508203&r2=1508208&rev=1508208&view=diff ============================================================================== Binary files - no diff available. Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Courier.xml URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Courier.xml?rev=1508208&r1=1508207&r2=1508208&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Courier.xml (original) +++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/Courier.xml Mon Jul 29 21:45:20 2013 @@ -22,275 +22,246 @@ Courier Courier StandardEncoding + -100 + 50 562 426 629 -157 32 255 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + Modified: xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBold.xml URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBold.xml?rev=1508208&r1=1508207&r2=1508208&view=diff ============================================================================== --- xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBold.xml (original) +++ xmlgraphics/fop/branches/Temp_FopFontsForSVG/src/codegen/fonts/CourierBold.xml Mon Jul 29 21:45:20 2013 @@ -22,275 +22,246 @@ Courier CourierBold StandardEncoding + -100 + 50 562 439 626 -142 32 255 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org