aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Warn about fonts which are not available.Jeremias Maerki2005-09-141-6/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280816 13f79535-47bb-0310-9956-ffa450edef68
* Added note about FOs where the id property is not processed, yet.Jeremias Maerki2005-09-131-4/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280586 13f79535-47bb-0310-9956-ffa450edef68
* Factorized the creation of the elements in TextLM: now both getNextKE() and ↵Luca Furini2005-09-131-249/+184
| | | | | | | | getChangedKE() call the same methods createElementsForASpace() and crateElementsForAWordFragment(). This should definitively solve bug 36533. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280520 13f79535-47bb-0310-9956-ffa450edef68
* Font weights 800 and 900 would not cause a bold font.Jeremias Maerki2005-09-121-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280288 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36068:Finn Bock2005-09-124-22/+79
| | | | | | | | | Validation added for font-style and font-weight by making both properties enums. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280286 13f79535-47bb-0310-9956-ffa450edef68
* Removed TODO. No MT issues here.Jeremias Maerki2005-09-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279721 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile error. Removed the user agent setting because it's not used and ↵Jeremias Maerki2005-09-092-17/+1
| | | | | | the FOUserAgent can be accessed through the parent LM's FObj if this ever becomes necessary again. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279719 13f79535-47bb-0310-9956-ffa450edef68
* Require at least Java 1.4 for building the javadocs.Joerg Pietschmann2005-09-081-4/+4
| | | | | | | | Add todo tag to javadoc task. Fixed @todo: tags. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279661 13f79535-47bb-0310-9956-ffa450edef68
* Fixed javadoc errors.Joerg Pietschmann2005-09-0843-132/+129
| | | | | | | Added a few TODOs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279656 13f79535-47bb-0310-9956-ffa450edef68
* Removing trailing spaces at the end of text areas: this is done by storing ↵Luca Furini2005-09-081-4/+4
| | | | | | | | the Position, whose value points to the AreaInfo created for a space, inside the glue element that is ignored if there is a line break. This fixes item 2) in bug 36533. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279551 13f79535-47bb-0310-9956-ffa450edef68
* Squashed CheckStyle warnings, mostly JavaDoc.Joerg Pietschmann2005-09-0716-57/+156
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279439 13f79535-47bb-0310-9956-ffa450edef68
* Using the fo property last-line-end-indent instead of a hard coded value.Luca Furini2005-09-073-13/+28
| | | | | | | | This fixes item 1) in bug 36533. Note that the old behaviour (before the changes) was not completely equivalent to the one requested by the specs, as the empty space was not necessarily placed at the end of the line; for example, the last line in a right-aligned paragraph was aligned as the previous lines, although shorter. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279338 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36520: Jeremias Maerki2005-09-062-99/+227
| | | | | | | | Cleaner transformation matrix handling. SVG painting extracted into an XMLHandler subclass like for the other renderers. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@279005 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36508: Jeremias Maerki2005-09-062-2/+33
| | | | | | | Support for padding-before and padding-after in RTF output. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278982 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36505: Jeremias Maerki2005-09-061-9/+11
| | | | | | | | | | | | | Several fixes for SVG painting in the Java2DRenderer. Updated SVG test case to test additional features. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> Comments and changes by jeremias: Added an additional SVG image with an intrinsic size and modified the test case to use and test that, too. I'll commit this patch because it improves the current situation but I'm not happy with the current state of Java2DRenderer.renderSVGDocument(). Creating inverse transformation matrices is surely not the right way to do this. The matrix should be saved and restored instead. Furthermore, renderSVGDocument should be extracted into a Java2DSVGHandler like it is done for the other renderers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278966 13f79535-47bb-0310-9956-ffa450edef68
* Fix for SVG images with an intrinsic size when the FOUserAgent does not ↵Jeremias Maerki2005-09-061-6/+9
| | | | | | | | default to 72dpi. Round the intrinsic size, don't truncate it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278957 13f79535-47bb-0310-9956-ffa450edef68
* My earlier fix didn't quite work if the protocol isn't the same between the ↵Jeremias Maerki2005-09-051-3/+3
| | | | | | base URI and the parameter URI. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278842 13f79535-47bb-0310-9956-ffa450edef68
* Fixes a compile error. I used a method from a SVN checkout of Commons IO. Sorry.Jeremias Maerki2005-09-051-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278816 13f79535-47bb-0310-9956-ffa450edef68
* Implemented embedding of Type 1 fonts. Jeremias Maerki2005-09-058-93/+399
| | | | | | | | | | font dict writing moved to new class PSFontUtils. PSGenerator.resolveURI() does the same as FOUserAgent.resolveURI() but thus avoids the dependency on FOUserAgent. Needed for font embedding. Treat fonts as resources now. Wrap font keying in FOP-specific comments for reliable finding. New class SubInputStream which reads a maximum number of bytes from an underlying InputStream and then behaves like it has reached EOF. Used for Type1 font embedding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278782 13f79535-47bb-0310-9956-ffa450edef68
* Not sure if it's the best solution but this changes the following: Jeremias Maerki2005-09-051-36/+50
| | | | | | | | - Enable plain filenames (without "file:" scheme) as URI. FOURIResolver tries to create a java.io.File to access the file. - If after removing the scheme from a file: URL the string still contains a ":" it is likely an absolute Windows path for which the user forgot to specify a leading "/", i.e.: file:C:/Temp/test.txt --> file:/C:/Temp/test.txt git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278779 13f79535-47bb-0310-9956-ffa450edef68
* Re-adjusting lines after a page-number or a page-number-citation is resolved.Luca Furini2005-09-0510-22/+447
| | | | | | At the moment, only TextAreas are adjusted, the other will be fixed soon! git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278765 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36479: Jeremias Maerki2005-09-053-2/+11
| | | | | | | Bookmarks are now working in RTF output. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278724 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36476: Jeremias Maerki2005-09-054-35/+110
| | | | | | | | | | | | | | | | Border support on block, block-container and inline introduced. Nesting borders are supported partially: only two levels of nesting. Consecutive paragraphs with identical border formatting are considered part of a single group with the border information applying to the entire group. Bugzilla #36477: start-indent and end-indent are used instead of margins only to do indentation. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> Changes to the patch by jeremias: Fix for deferred handling which didn't work for block-containers. They got ignored. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278720 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36475: Jeremias Maerki2005-09-052-17/+37
| | | | | | | Fix for block background not extending to the whole block content-width. Submitted by: Sergey Simonchik <Sergey.Simonchik.at.borland.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278695 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36487: Jeremias Maerki2005-09-0515-781/+775
| | | | | | | | | | | | | | | | Background images were incorrectly positioned in some absolute positioned blocks. Some additional attributes output by the XMLRenderer. Refactored the layout for e-g and i-f-o. Introduced common base classes for the corresponding flow objects as well as the e-g and i-f-o LMs. Fixed incorrectly applied margins on region-body when writing mode is not lr. Fixed application of correct percent base for margins and extents on regions when the reference orientation is 90 degrees. Fixed incorrectly positioned regions when writing mode is different between the simple-page-master setting and the setting on the region. Several updates to the layout engine test cases. Submitted by: Manuel Mall <mm.at.arcus.com.au> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@278690 13f79535-47bb-0310-9956-ffa450edef68
* Initial work on enhancing the extension facilities to register special ↵Jeremias Maerki2005-09-0221-164/+883
| | | | | | | | | | | | | | extensions which create so-called ExtensionAttachment objects which are attached to the formatting object they are attached to. These objects can be evaluated by standard or custom layout managers or simply passed through to the area tree (the latter is NYI). The AreaTreeHandler currently takes ExtensionAttachment objects from fo:root and fo:declarations and wraps them in OffDocumentItems that Renderers can react on to provide additional functionality on document-level (like PDF metadata or PostScript media dictionaries). Since the simple-page-master is available directly from the PageViewport the renderer can take ExtensionAttachment objects directly from there (see PSRenderer.renderPage()). Extension Elements that provide ExtensionAttachments are not added as such to the child element list of a formatting object since they work a little differently and should free memory as soon as possible. The PostScript extension described in http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript are now fully implemented but under the namespace URI "http://xmlgraphics.apache.org/fop/postscript", not "http://xml.apache.org/fop/extensions". I'll need to look at namespaces again separately, later. The new PSExtensionElementMapping is currently hard-coded into FOTreeBuilder as are the other ElementMapping classes. OffDocumentItem is now an interface, AbstractOffDocumentItem now providing the base functionality of the former OffDocumentItem class. Lots of clean-up and javadocs while working through this, for example: FObj.childNodes is not public anymore. Instead a special method on fo.flow.InstreamForeignObject provides the child in the one case childNodes was directly accessed. PropertyMaker access in FObj is also done through a method now, propertyListTable is now private. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@267209 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup of unused imports.Finn Bock2005-09-0124-41/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265738 13f79535-47bb-0310-9956-ffa450edef68
* Been careless again, sorry.Jeremias Maerki2005-09-011-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265689 13f79535-47bb-0310-9956-ffa450edef68
* PDFNumber.doubleOut() rewritten using java.text.DecimalFormat. Jeremias Maerki2005-09-011-52/+28
| | | | | | | This fixes a bug of doubleOut() not recognizing the scientific format sometimes returned by Double.toString(double). This change may result in slightly different value being written to the PDF stream. The former doubleOut contained specific code to do special rounding where the new method using DecimalFormat implicitly uses the BigDecimal.ROUND_HALF_EVEN strategy when rounding. These different values hopefully won't make a big visual difference. They don't in my tests. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265688 13f79535-47bb-0310-9956-ffa450edef68
* An additional comment so this line will not be activated accidentally. The ↵Jeremias Maerki2005-09-011-0/+1
| | | | | | | | problem was a backwards-incompatible chnage in Batik for which a patch has been submitted: http://issues.apache.org/bugzilla/show_bug.cgi?id=36455 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265675 13f79535-47bb-0310-9956-ffa450edef68
* Reverting my earlier change to make FOP compile with Batik 1.6 again. I'm ↵Jeremias Maerki2005-09-011-1/+1
| | | | | | investigating this problem further. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265663 13f79535-47bb-0310-9956-ffa450edef68
* Fixed copyright year.Finn Bock2005-09-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265657 13f79535-47bb-0310-9956-ffa450edef68
* Fixed license blurb.Finn Bock2005-08-311-7/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265581 13f79535-47bb-0310-9956-ffa450edef68
* Fix a compile conflict with BlockStackingLayoutManager.Finn Bock2005-08-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265580 13f79535-47bb-0310-9956-ffa450edef68
* Set not only the base URL for the SVG Document but also the URI. Otherwise, ↵Jeremias Maerki2005-08-311-1/+3
| | | | | | relatively referenced documents or images inside an SVG defined in a fo:instream-foreign-object don't get resolved. This fixes certain problems with examples/fo/svg/external.fo. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265578 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36379:Finn Bock2005-08-3179-837/+2517
| | | | | | | | | | | | Revised percentage resolution system. Submitted by: Manuel Mall <mm.at.arcus.com.au> Slightly modified to avoid early evaluation of getValue(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@265577 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36432: Jeremias Maerki2005-08-312-1/+14
| | | | | | | | | | | | | JAI image does not release all resources - reported by Stephen Denne - thanks! When loading an image provider whose support libraries are missing an exception is thrown which should really only be a warning and the next provider be tried. Submitted by: Manuel Mall <mm.at.arcus.com.au> Changes to the patch by JM: Log level for the warning changed to debug() because the binary distribution is compiled with JAI and JIMI support and this will cause a lot of inappropriate warnings for people just happy with ImageIO images. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264978 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36418: Jeremias Maerki2005-08-311-4/+7
| | | | | | | Documentation update for the "reload" change in the AWT Viewer. Submitted by: Richard Wheeldon <richardw.at.geoquip-rnd.demon.co.uk> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264974 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the use of Length property for baseline-shift.Finn Bock2005-08-302-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264890 13f79535-47bb-0310-9956-ffa450edef68
* added support for superscript and subscriptPeter Herweg2005-08-301-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264863 13f79535-47bb-0310-9956-ffa450edef68
* added support for superscript and subscriptPeter Herweg2005-08-302-2/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264856 13f79535-47bb-0310-9956-ffa450edef68
* Harmonization between the two Graphics2D implementations. Clipping is done ↵Jeremias Maerki2005-08-302-23/+32
| | | | | | | | after the transform. All path iterators use an identity transform which makes the PDF/PS code more readable and usually smaller. Added missing support for non-zero winding rule in PSGraphics2D. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264837 13f79535-47bb-0310-9956-ffa450edef68
* Removed unnecessary comments.Jeremias Maerki2005-08-301-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264834 13f79535-47bb-0310-9956-ffa450edef68
* Some clean-up.Jeremias Maerki2005-08-301-9/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264833 13f79535-47bb-0310-9956-ffa450edef68
* Write to log output (debug level) which image source is used to load an image.Jeremias Maerki2005-08-301-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264824 13f79535-47bb-0310-9956-ffa450edef68
* Fix for text-align2.xml (for real now). The alignment used to set up the ↵Jeremias Maerki2005-08-301-5/+11
| | | | | | element list was not properly determined. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264797 13f79535-47bb-0310-9956-ffa450edef68
* Fix for ClassCastException as shown in text-align2 (Reported by Lawrence ↵Jeremias Maerki2005-08-301-3/+2
| | | | | | | | Michel). Wrong alignment was taken to remove trailing spaces. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264773 13f79535-47bb-0310-9956-ffa450edef68
* added support for text-decorationPeter Herweg2005-08-293-46/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264639 13f79535-47bb-0310-9956-ffa450edef68
* Moved renderInlineBlockParent() up to the superclass. Fixes border and ↵Jeremias Maerki2005-08-292-12/+12
| | | | | | background painting for inline block parents in PostScript. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264147 13f79535-47bb-0310-9956-ffa450edef68
* Fixed the page coordinate system for the PDF Renderer (Defect: Rounding and ↵Jeremias Maerki2005-08-292-24/+46
| | | | | | rounding errors). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264145 13f79535-47bb-0310-9956-ffa450edef68