aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Extracted most of the code in CodePointMapping (generated by XSLT) into a ↵Jeremias Maerki2008-02-1611-133/+397
| | | | | | | | | | | | | base class for easier maintenance and proper Javadocs. Deprecated FOP's copy of Glyphs.java. Took a different approach at handling mapping alternatives for single-byte fonts. The AFM now only lists the main character. Substitution is done through Glyphs.java later in CodePointMapping. Fixed a problem in Type1FontLoader where the PFM overrides asc/desc/cap/x even though the AFM provides the values. It showed itself because the URW Symbol font has wrong values in the PFM. Added a note to myself in Type1FontLoader to implement the "Flags" value. The whole thing still seems to work without that part. Added a glyph name list to the CodePointMapping so we can work with the original list from the AFM. Otherwise, various mapping operations to and from resulted in unwanted mappings (because the mappings are not necessarily 1:1) and in the end the PDF received an incorrect Encoding map. Now there's no such problem anymore. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628280 13f79535-47bb-0310-9956-ffa450edef68
* rowStarted doesn't need to be set in the signalNewRow method. If it is, it ↵Vincent Hennebert2008-02-152-6/+5
| | | | | | will prevent the startTablePart event from being triggered on RowGroupBuilder, in addChildNode. This will lead to a NPE being thrown in CollapsingBorderResolver because it would be improperly set up. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628140 13f79535-47bb-0310-9956-ffa450edef68
* break-after set on the last child of a row-spanning cell must apply to the ↵Vincent Hennebert2008-02-142-1/+92
| | | | | | last row spanned by the cell git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627721 13f79535-47bb-0310-9956-ffa450edef68
* Created Constants for unit descriptionsMaximilian Berger2008-02-146-22/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627719 13f79535-47bb-0310-9956-ffa450edef68
* Simplified the detection of double as integerVincent Hennebert2008-02-141-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627712 13f79535-47bb-0310-9956-ffa450edef68
* Fix problem with alternate Unicode code point overriding existing better ↵Jeremias Maerki2008-02-146-61/+247
| | | | | | | | ones in CodePointMapping (ex. a char code for NBSP was used in place of SPACE for non-standard encodings). Made PFM completely optional if an AFM is available. Widths and Kerning are now also read from the AFM. Fallbacks for missing values are in place. If both AFM and PFM are available, both are used to get the best possible result for certain metrics. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627702 13f79535-47bb-0310-9956-ffa450edef68
* 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-1437-934/+2272
| | | | | | | | | | | | | | | | 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-137-26/+54
| | | | | | 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-1317-63/+3824
| | | | 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-13112-4098/+4101
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627367 13f79535-47bb-0310-9956-ffa450edef68
* Ensured all SVN properties are set equallyMaximilian Berger2008-02-13120-12046/+12050
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627324 13f79535-47bb-0310-9956-ffa450edef68
* Added *.xml to svn:ignoreMaximilian Berger2008-02-130-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@627318 13f79535-47bb-0310-9956-ffa450edef68
* Fixed wrong numbering of cellsVincent Hennebert2008-02-122-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620761 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-123-9/+5
| | | | | | 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
* Disabled region-body_column-count_bug#37468 testcase because of bug 44393Vincent Hennebert2008-02-111-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620567 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-116-14/+2542
| | | | 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-103-0/+63
| | | | | | 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-102-154/+135
| | | | | | | | | * 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-104-76/+171
| | | | | | 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
* Testcase for bug #43676, which is now fixedVincent Hennebert2008-02-081-0/+75
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619923 13f79535-47bb-0310-9956-ffa450edef68
* Added missing width for Euro glyph.Jeremias Maerki2008-02-081-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619870 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-0818-344/+1675
| | | | | | | | | 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
* Added a clarification that this bug affected PDF/A compliance.Jeremias Maerki2008-02-081-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@619790 13f79535-47bb-0310-9956-ffa450edef68
* Tweak: modify PercentLength.toString() to return a value that facilitates ↵Andreas L. Delmelle2008-02-072-12/+20
| | | | | | | | | 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-074-7/+42
| | | | | | 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-075-23/+98
| | | | | | 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-077-11/+121
| | | | | | 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-069-52/+266
| | | | | | | | 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
* Added testcase for Bugzilla 44343Andreas L. Delmelle2008-02-041-0/+62
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618470 13f79535-47bb-0310-9956-ffa450edef68
* Fixed minor typo I stumbled upon while doing something completely unrelatedVincent Hennebert2008-02-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@618239 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 43705:Andreas L. Delmelle2008-02-032-6/+29
| | | | | | | | | 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-036-7/+112
| | | | | | | | | 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
* Fixed transcoder test after yesterday's changes.Jeremias Maerki2008-02-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617765 13f79535-47bb-0310-9956-ffa450edef68