aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
Commit message (Collapse)AuthorAgeFilesLines
...
* When I first saw this it surprised me, it seems to have been here for quite ↵Adrian Cumiskey2008-02-141-28/+9
| | | | | | | | | some time. The code block directly following this if/else condition was identical so I removed the copy/paste duplication and refactored it. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627698 13f79535-47bb-0310-9956-ffa450edef68
* Added support for Type 1 fonts which don't use the AdobeStandardEncoding for ↵Jeremias Maerki2008-02-1432-915/+2211
| | | | | | | | | | | | | | | | PDF and PS output. Details: Added an Type 1 AFM parser (only basic ltr script fonts are properly supported). Font loading changed slightly to allow loading an AFM in addition to a PFM. Added some mapping functionality to CodePointMapping. Now we also build custom CodePointMapping instances from AFM files and use it in SingleByteFonts. Changed more PDF object classes to make use of the generic PDFDictionary and PDFArray base classes. Type 1 Fonts with a special encoding now register their encoding in the Encoding value of the font dictionary so the mapping is correct. For PS this isn't necessary as the interpreter just uses the font's default encoding. Refactored CMap building code to it can also be used outside the PDF context. A CMap can now also be built from a single byte encoding. Update of XML Graphics Commons snapshot. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627679 13f79535-47bb-0310-9956-ffa450edef68
* Moved to the FO tree stage the check for break-before/after on table-row ↵Vincent Hennebert2008-02-135-22/+46
| | | | | | while spanning in progress, and fixed bug #44321 as well git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627576 13f79535-47bb-0310-9956-ffa450edef68
* Added support for breaks before and after table cellsVincent Hennebert2008-02-1310-60/+208
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627553 13f79535-47bb-0310-9956-ffa450edef68
* Easy way to force the discarding of the user's font cache file (especially ↵Jeremias Maerki2008-02-131-2/+6
| | | | | | after the recent changes). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627497 13f79535-47bb-0310-9956-ffa450edef68
* Replace useless javadoc comment.Jeremias Maerki2008-02-131-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627495 13f79535-47bb-0310-9956-ffa450edef68
* Ensured all SVN properties are set equallyMaximilian Berger2008-02-13102-3749/+3749
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627367 13f79535-47bb-0310-9956-ffa450edef68
* Simplification.Jeremias Maerki2008-02-121-4/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620750 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #44393:Jeremias Maerki2008-02-121-1/+3
| | | | | | Recognize the newly used EN_AUTO constant for break values. Other LMs generate a -1 value for this case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620723 13f79535-47bb-0310-9956-ffa450edef68
* Missing file from r620283Andreas L. Delmelle2008-02-111-1/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68
* Better javadoc for break classVincent Hennebert2008-02-112-5/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620565 13f79535-47bb-0310-9956-ffa450edef68
* Fixed illegal character in the fileVincent Hennebert2008-02-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620559 13f79535-47bb-0310-9956-ffa450edef68
* Added full support for breaks inside table-cell elementsVincent Hennebert2008-02-112-14/+62
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620558 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 41631: Percentage resolution for arguments to ↵Andreas L. Delmelle2008-02-101-0/+29
| | | | | | proportional-column-width() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620285 13f79535-47bb-0310-9956-ffa450edef68
* Correction/Rectification of changes made in r617989:Andreas L. Delmelle2008-02-101-153/+131
| | | | | | | | | * adjustment in ColorUtil to cater for the change * added check to the color_1.xml testcase, checking for bug 43705 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620283 13f79535-47bb-0310-9956-ffa450edef68
* Missing file from r620272Andreas L. Delmelle2008-02-101-13/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620278 13f79535-47bb-0310-9956-ffa450edef68
* Tweak: wrap numeric values internally in Integers or Longs if possible, ↵Andreas L. Delmelle2008-02-101-15/+29
| | | | | | Doubles only if necessary. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620277 13f79535-47bb-0310-9956-ffa450edef68
* Revisit background-position shorthand implementation: always convert to ↵Andreas L. Delmelle2008-02-103-64/+147
| | | | | | percentages (more possibilities/precision). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620276 13f79535-47bb-0310-9956-ffa450edef68
* Some minor tweaks:Andreas L. Delmelle2008-02-103-9/+22
| | | | | | | | | * added convenience shortcut to PropertyInfo to get to the user agent. * replaced occurrences to use the shortcut in PropertyParser and RGBColorFunction. * PropertyParser -> 0% of a length always yields FixedLength.ZERO_FIXED_LENGTH git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620272 13f79535-47bb-0310-9956-ffa450edef68
* In addKnuthElementsForBorderPaddingXXX, if the returnlist is aSimon Pepping2008-02-081-0/+16
| | | | | | | | | BlockKnuthSequence, the border and padding should be added to the first or last paragraph inside it, but it is too late to do that now. At least, avoid adding it to the bpd sequence. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619979 13f79535-47bb-0310-9956-ffa450edef68
* Also display the column index in the toString methodVincent Hennebert2008-02-081-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619856 13f79535-47bb-0310-9956-ffa450edef68
* Removed the 900 penalty mechanism which anyway almost always produced ↵Vincent Hennebert2008-02-086-281/+505
| | | | | | | | | visually bad results. Now the first step for a row is computed so that each cell starting on it can contribute some content. Used a similar mechanism to replace backtracking: the current row is now allowed to grow as long as there is not enough space on the current page to make the next row fit. The next row is "delayed", so this mechanism is called "row-delaying" git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619854 13f79535-47bb-0310-9956-ffa450edef68
* Tweak: modify PercentLength.toString() to return a value that facilitates ↵Andreas L. Delmelle2008-02-071-11/+13
| | | | | | | | | debugging. Moved the original code to a getString() implementation, which is now used by the fotree test suite. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619674 13f79535-47bb-0310-9956-ffa450edef68
* Tweak: early percentage resolution by the parser (if the base is known and ↵Andreas L. Delmelle2008-02-073-2/+37
| | | | | | absolute). Reduces the number of PercentLength instances in favor of cached FixedLengths. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619670 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for date formatting with negative time zones in the PDF's Info object.Jeremias Maerki2008-02-071-20/+31
| | | | | | Update of xmlgraphics-commons-1.3.jar because of a similar bug with formatting dates in XMP. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619461 13f79535-47bb-0310-9956-ffa450edef68
* Added an option to disable the default sRGB profile in PDF output for those ↵Jeremias Maerki2008-02-072-6/+30
| | | | | | who don't care about color fidelity, but care about PDF file size. Note that this option is not possible if PDF/A, PDF/X or an output profile is used. Makes simple PDFs about 4KB smaller. Ha! git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619417 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36391:Jeremias Maerki2008-02-064-40/+87
| | | | | | | | Fixed problem with positioning of content when reference-orientation="180" is used. CTM is now correct. It is updated after the height of the content is known. Instead of somehow inverting the element list, I've simply declared this case non-breakable, i.e. I generate one box. Fixed a few other problems mostly occurring when rotating block-container content by 90 or 270 degrees plus a few remaining auto-height handling problems. This involved switching off some sometimes unwanted side-effects from auto-updating the BPD in some area classes. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618992 13f79535-47bb-0310-9956-ffa450edef68
* FOX_TRANSFORM constant should be static.Jeremias Maerki2008-02-051-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618627 13f79535-47bb-0310-9956-ffa450edef68
* Change PDFPage to use PDFDictionary in order to make it possible to better ↵Jeremias Maerki2008-02-054-133/+73
| | | | | | set MediaBox/TrimBox/BleedBox. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618626 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 43705:Andreas L. Delmelle2008-02-031-6/+24
| | | | | | | | | Fixed a bug when the rgb-icc() function was used before the fo:declarations, or in documents without fo:declarations. Function now correctly (?) reverts to the sRGB fallback in those cases. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617989 13f79535-47bb-0310-9956-ffa450edef68
* Added very basic parsing for the xml:lang shorthand.Andreas L. Delmelle2008-02-033-3/+70
| | | | | | | | | No validation of the specified value, but the language and country properties now do take the shorthand into account to determine their value. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617976 13f79535-47bb-0310-9956-ffa450edef68
* Slight correction for pixel-values: pass the ratio of pixels-per-point into ↵Andreas L. Delmelle2008-02-022-28/+27
| | | | | | FixedLength.getInstance() git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617909 13f79535-47bb-0310-9956-ffa450edef68
* Further improvement in FixedLength:Andreas L. Delmelle2008-02-024-7/+14
| | | | | | | | * added a special ZERO_FIXED_LENGTH instance * store only non-zero values in the PropertyCache git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617907 13f79535-47bb-0310-9956-ffa450edef68
* Further cleanup/refinement of FixedLength:Andreas L. Delmelle2008-02-026-86/+91
| | | | | | | | | | * improve consistency in use of the PropertyCache remove public constructor -> replaced by getInstance() in a handful of classes * added a sourceResolution parameter to getInstance() and the private constructor to allow better handling of device-dependent units (px) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617812 13f79535-47bb-0310-9956-ffa450edef68
* Minor cleanup/improvement:Andreas L. Delmelle2008-02-022-25/+18
| | | | | | | | - FontSizePropertyMaker: remove redundant casts (FixedLength already casts the doubles internally) - FixedLength: reduce visibility of 'fishy' convert() method (not used anywhere else) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617716 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 44343:Andreas L. Delmelle2008-02-011-3/+16
| | | | | | | | | Fixed a bug when using relative (smaller/larger) font-sizes in combination with percentages. Percentages now resolved as per the spec (XSL-FO 1.1 7.9.4): "A percentage value specifies an absolute font size relative to the parent element's font-size." git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617708 13f79535-47bb-0310-9956-ffa450edef68
* Add a note about color space overrides which currently aren't supported for ↵Jeremias Maerki2008-02-011-0/+2
| | | | | | natively handled images, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617550 13f79535-47bb-0310-9956-ffa450edef68
* Move sRGB installation into the PDF library. That way it can be used in ↵Jeremias Maerki2008-02-013-46/+95
| | | | | | | | PDFDocumentGraphics2D, too (via AbstractImageAdapter). Ensures correct handling of sRGB images in PDFTranscoder. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617531 13f79535-47bb-0310-9956-ffa450edef68
* AlphaRasterImage now knows how to deal with TYPE_INT Rasters.Jeremias Maerki2008-02-014-187/+133
| | | | | | | | Streamlined image handling in Graphics2D. Support natively handling CCITT images in SVG images. Add fallback to device RGB if sRGB isn't set up as the default color space in PDF. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617512 13f79535-47bb-0310-9956-ffa450edef68
* Implemented drawRenderedImage() which fixes painting of PNG images embedded ↵Jeremias Maerki2008-02-011-52/+38
| | | | | | inside SVG images. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617473 13f79535-47bb-0310-9956-ffa450edef68
* Removed the Dijkstra stuff as it was moved to Commons.Jeremias Maerki2008-01-305-448/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616798 13f79535-47bb-0310-9956-ffa450edef68
* "cvt ", "fpgm" and "prep" are all optional tables in TrueType. Some PDF ↵Jeremias Maerki2008-01-301-48/+65
| | | | | | viewers fail because FOP didn't handle those correctly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616691 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix for invalid numTables entry in subset TrueType fonts if there was no ↵Jeremias Maerki2008-01-281-2/+5
| | | | | | "fpgm" table (Example: FreeSerif). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@616080 13f79535-47bb-0310-9956-ffa450edef68
* Added support for the natural language indentifier ("Lang" in the document ↵Jeremias Maerki2008-01-2813-65/+183
| | | | | | catalog) for PDF documents based on the language/country values on fo:page-sequence. This required a few changes in the AreaTreeModel and the Renderer interface because it didn't support passing through the PageSequence object, only its title. Now, we can put other values on the PageSequence and transport them to the renderers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615906 13f79535-47bb-0310-9956-ffa450edef68
* Improve breaking for block-container and static-content so there are no more ↵Jeremias Maerki2008-01-283-9/+24
| | | | | | "breaking artifacts" (like additional border lines) in the overflowing part of the content anymore. This is done by removing all breaks from the result list prior to constructing the area tree. The presence of breaks simply indicates that there is an overflow. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615845 13f79535-47bb-0310-9956-ffa450edef68
* Of course startIndex == endIndex means there is one element whose length ↵Vincent Hennebert2008-01-271-1/+1
| | | | | | must be computed... Changed >= into > git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615604 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #44286:Andreas L. Delmelle2008-01-271-23/+26
| | | | | | | | Fixed a memory-leak in XMLWhiteSpaceHandler. Submitted by: Stefan Ziel <stefan.ziel.at.claninfo.ch> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615598 13f79535-47bb-0310-9956-ffa450edef68
* Fixed a bug in computeContentLength when there are empty cellsVincent Hennebert2008-01-251-13/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615251 13f79535-47bb-0310-9956-ffa450edef68
* Improved error tolerance: an enum property value with leading or trailing ↵Jeremias Maerki2008-01-251-2/+2
| | | | | | spaces is still recognized. Example: content-width="scale-to-fit " git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615197 13f79535-47bb-0310-9956-ffa450edef68
* Fix exception when closing Source that doesn't have any streams.Jeremias Maerki2008-01-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615164 13f79535-47bb-0310-9956-ffa450edef68