aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bug fix: memory leak in PropertyCache. Fix provided by Jeremias. There are ↵Chris Bowditch2007-11-202-5/+13
| | | | | | still some thread synchronization issues to be addressed in the PropertyCache. See the following thread for details: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200711.mbox/%3cBAY117-DAV109E36CC066889386AB917FB870@phx.gbl%3e git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596739 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix in tables: wrong element generation by the merging algorithm when ↵Vincent Hennebert2007-11-203-5/+21
| | | | | | glues must be produced to cope with conditional spaces. The corresponding length was added twice: one in the glue itself and one in the following box. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596727 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Bugfix for URI resolution: Make StreamSources without system ↵Jeremias Maerki2007-11-203-19/+41
| | | | | | | | | identifier work again. Bugfix: Close streams opened by test font resolution in font configuration (the font URIs will be resolved again later anyway). Better error message when the loading of font metric files doesn't work due to missing information in the returned Source instances. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596724 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43910:Jeremias Maerki2007-11-202-23/+24
| | | | | | | Avoid a NullPointerException in AreaTreeHandler.endDocument(). Submitted by: David Delbecq <delbd.at.oma.be> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596600 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43904:Jeremias Maerki2007-11-202-8/+24
| | | | | | Buffer the OutputStreams in our transcoders if the users forget. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596554 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43766: breaks generated by the merging algorithm for table rows ↵Vincent Hennebert2007-11-193-1/+106
| | | | | | containing empty cells has always a penalty of 900 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596390 13f79535-47bb-0310-9956-ffa450edef68
* Added sample as suggested by Kumar Puppala.Jeremias Maerki2007-11-181-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596100 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43605:Jeremias Maerki2007-11-188-229/+401
| | | | | | | | | | Added methods for page-number-citation and page-number-citation-last in FOEventHandler.java Submitted by: V. Schappert <vschappert.at.bloomberg.net> Patch modified by Jeremias: Bugfix: FOEventHandler.startPageNumberCitation() was also called in the case of a page-number-citation-last. Introduced abstract base classes to avoid this. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596097 13f79535-47bb-0310-9956-ffa450edef68
* ApacheCon US is over.Jeremias Maerki2007-11-182-35/+51
| | | | | | | | OSSSummit was cancelled/postponed. Added example for total page count using XSL 1.1 Adjusted total page count example to new FOP API. (Thanks to Miroslav Gregan for the hint) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@596072 13f79535-47bb-0310-9956-ffa450edef68
* This should improve the ability of the FontLoader when resolving PFM filesAdrian Cumiskey2007-11-161-1/+4
| | | | | | | for Type 1 fonts on case sensitive Unix systems. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@595637 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43143: Jeremias Maerki2007-11-151-5/+8
| | | | | | Had to remove the Expert(Subset) Encoding detection as this caused problems with a barcode font that used dfCharset=2 but was not using ExpertSubset encoding. To detect Expert(Subset)Encoding, the AFM needs to be parsed. And since we don't support that encoding, yet, the fallback to WinAnsiEncoding should work well enough. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@595297 13f79535-47bb-0310-9956-ffa450edef68
* Restored the setting of rowIndex on primary grid units (although testcases ↵Vincent Hennebert2007-11-144-18/+16
| | | | | | were already working...) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594852 13f79535-47bb-0310-9956-ffa450edef68
* Restored the setting of the parent table-row element on grid unitsVincent Hennebert2007-11-147-40/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594836 13f79535-47bb-0310-9956-ffa450edef68
* Reduced visibility of some methods and constructors from public to ↵Vincent Hennebert2007-11-143-6/+6
| | | | | | package-private, as a consequence of the move of *GridUnit to the fo.flow.table package git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594829 13f79535-47bb-0310-9956-ffa450edef68
* Moved EffRow to the fo.flow.table packageVincent Hennebert2007-11-148-4/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594821 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up RowGroupLayoutManager and TableRowIteratorVincent Hennebert2007-11-133-473/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594592 13f79535-47bb-0310-9956-ffa450edef68
* Use a singleton for a default BorderInfo of style none, instead of every ↵Vincent Hennebert2007-11-132-3/+22
| | | | | | time a new instance git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594584 13f79535-47bb-0310-9956-ffa450edef68
* Changed back visibility of fields from public to package-private, due to the ↵Vincent Hennebert2007-11-132-2/+2
| | | | | | move of *GridUnit in the fo.flow.table package git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594579 13f79535-47bb-0310-9956-ffa450edef68
* Moved *GridUnit from layoutmgr/table to fo/flow/tableVincent Hennebert2007-11-1316-22/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594578 13f79535-47bb-0310-9956-ffa450edef68
* Moved the creation of grid units to the FO tree building stage. Brought a ↵Vincent Hennebert2007-11-1332-722/+2925
| | | | | | | | | | | | | few improvements along with the move: - bugfix: border-resolution for border-end on row-spanning cells was wrong - bugfix: in case of missing cells the border-end of the table was applied to an inner cell, instead of the cell in the last column (but missing cells aren't painted yet :-\) - bugfix: in collapsing-border model, border-before and -after specified on table-column were applied to every cell of the column, instead of only the first and the last ones - border resolution is now made progressively when possible, and no longer triggers the fetching of all the rows of the table Added testcases for the border conflict resolution (between the various elements of a table and not only the cells) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594571 13f79535-47bb-0310-9956-ffa450edef68
* Fix two javadoc warnings.Jeremias Maerki2007-11-132-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594552 13f79535-47bb-0310-9956-ffa450edef68
* More informative overflow message (sometimes the overflow is just a few ↵Jeremias Maerki2007-11-131-17/+19
| | | | | | millipoints and it's nice to know how many). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594522 13f79535-47bb-0310-9956-ffa450edef68
* Log element list length for convenience.Jeremias Maerki2007-11-131-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594517 13f79535-47bb-0310-9956-ffa450edef68
* Filter single quotes from the filenames as this will interfere with ↵Jeremias Maerki2007-11-131-4/+19
| | | | | | | | font-family parsing. Fixed bug: InputStream opened by URL.openConnection() wasn't closed which leads to "too many open files" when you have lots of fonts on Java 1.4. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594516 13f79535-47bb-0310-9956-ffa450edef68
* Better error messages in fontLookup().Jeremias Maerki2007-11-131-8/+25
| | | | | | Expose font triplets to the outside (used by a test tool I wrote). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594515 13f79535-47bb-0310-9956-ffa450edef68
* Some TTF fonts don't have a PostScript name, so just emulate it in this case ↵Jeremias Maerki2007-11-131-1/+6
| | | | | | to avoid problems with font lookup further down. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594513 13f79535-47bb-0310-9956-ffa450edef68
* Improved PFM loading: Jeremias Maerki2007-11-132-10/+28
| | | | | | | | - Fixed bug with Flags (resulted in bad PDFs for certain fonts) - Warn about possible charset problems. - Fixed bug for "last char" (probably a copy/paste mistake) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594512 13f79535-47bb-0310-9956-ffa450edef68
* Expose a method so I can easily extract the renderer configuration from ↵Jeremias Maerki2007-11-131-8/+18
| | | | | | outside the rendering domain (for a test tool). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594509 13f79535-47bb-0310-9956-ffa450edef68
* bug fix: avoid NPE when GC has removed a weak reference in the Property CacheChris Bowditch2007-11-121-5/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594223 13f79535-47bb-0310-9956-ffa450edef68
* Use tableLM instead of the primary grid unit to retrieve the Table fobjVincent Hennebert2007-11-121-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594079 13f79535-47bb-0310-9956-ffa450edef68
* Avoid null values in generated Font classes so the encoding can be inspected.Jeremias Maerki2007-11-125-10/+45
| | | | | | Don't warn about missing hyphenation characters for fonts such as Symbol and ZapfDingbats which don't have the default hyphenation character. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594067 13f79535-47bb-0310-9956-ffa450edef68
* Better solution for missing hyphenation character problem.Jeremias Maerki2007-11-123-15/+54
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594054 13f79535-47bb-0310-9956-ffa450edef68
* Issue a clear warning if the selected hyphenation character is not available ↵Jeremias Maerki2007-11-121-2/+8
| | | | | | in a font. Otherwise you'd just get a "glyph not available" error and you wonder why the hell FOP wants to use that character. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@594046 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43835:Jeremias Maerki2007-11-112-5/+9
| | | | | | | Bugfix: Use Font.getName() (logical font name) instead of Font.getFontName() (localized) when registering fonts from AWT. Submitted by: David Churavy <churavy.at.kadel.cz> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593909 13f79535-47bb-0310-9956-ffa450edef68
* Attempt to shed light on what this method does.Jeremias Maerki2007-11-091-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593573 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: An invalid PDF was created if a grayscale JPEG image with an sRGB ↵Jeremias Maerki2007-11-091-5/+12
| | | | | | profile was embedded undecoded. I didn't find any other way than to disable the the ICC profile in this case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593452 13f79535-47bb-0310-9956-ffa450edef68
* Another improvement for font auto-detection:Jeremias Maerki2007-11-0814-67/+101
| | | | | | | Some TrueType fonts have multiple font family names which we haven't extracted so far. All these names are now exposed as a Set of Strings. An example: Futura Book BT has two font families: Futura (Mac platform) and Futura Bk BT (Windows platform). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593245 13f79535-47bb-0310-9956-ffa450edef68
* Improved font auto-detection and handling of AWT-supplied fonts in order to ↵Jeremias Maerki2007-11-0840-228/+489
| | | | | | | | | | | | | | achieve better results when using multiple output formats. Whenever possible, the font names appearing in the operating system can also be used in XSL-FO. Better distinction between Font Family Name ("Arial"), Full Font Name ("Arial Bold") and PostScript Name ("Arial-BoldMT"). This allows a better generation of FontTriplets. The same is done for AWT fonts where I have switch from font-family detection to enumerating all java.awt.Font instances so I can extract Family Name, Full Name and PostScript Name. FontInfoFinder and AWT's FontSetup are synchronized as well as possible at this time. Register "extra-bold" (weight 800) and "light" (weight 200) in triplets when detected. Tweaked FontInfo.fontLookup() for better fallback behaviour. This approach is rapidly nearing its flexibility limits. We should rethink the FontTriplet structure. Fixed font-autodetection so fonts with uppercase extensions are detected, too. Made the way TrueType fonts are embedded in PDF compliant to the specification so viewers correctly identify subset fonts. The name prefix in MultiByteFont was incorrect. Support the detection of the special Type 1 Symbol font. Symbol used to be detected with "ExpertSubsetEncoding" instead of "SymbolEncoding". Type1FontLoader tries to construct a "full name" from the PostScript name. This is a temporary hack until we have a PFB or PFA parser. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593189 13f79535-47bb-0310-9956-ffa450edef68
* bugfix: instead of throwing an exception use default PS Level if not set in ↵Chris Bowditch2007-11-081-1/+3
| | | | | | fop.xconf file git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593172 13f79535-47bb-0310-9956-ffa450edef68
* Nitpick regarding the Nimbus font namesVincent Hennebert2007-11-081-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593116 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: filters were not applied but still produced into the dictionary even ↵Jeremias Maerki2007-11-081-1/+3
| | | | | | if the filters are disabled. Fixes a bug with PDF-in-PDF embedding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593076 13f79535-47bb-0310-9956-ffa450edef68
* Some notes about FOP's default font and font substitution for Base 14 fonts ↵Jeremias Maerki2007-11-081-1/+26
| | | | | | in document viewers. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@593051 13f79535-47bb-0310-9956-ffa450edef68
* Fixed regression: transparent-page-background was not recognized for PNG output.Jeremias Maerki2007-11-062-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592554 13f79535-47bb-0310-9956-ffa450edef68
* Removed no-longer applicable test cases, for cells spanning more rows than ↵Vincent Hennebert2007-11-062-320/+0
| | | | | | available in the table part git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592399 13f79535-47bb-0310-9956-ffa450edef68
* Now that there is a dedicated package for tables, the PendingSpan class can ↵Vincent Hennebert2007-11-063-24/+40
| | | | | | be extracted into a top-level class. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592395 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add IllegalRowSpanTestCase to the test suite...Vincent Hennebert2007-11-061-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592394 13f79535-47bb-0310-9956-ffa450edef68
* Added check for table-cells which span more rows than available in their ↵Vincent Hennebert2007-11-0612-26/+393
| | | | | | parent element git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592392 13f79535-47bb-0310-9956-ffa450edef68
* Slightly reworked too-many-columns_body_3 testcase, added testcase for a ↵Vincent Hennebert2007-11-062-4/+49
| | | | | | cell that spans too many columns (too-many-columns_body_4) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592387 13f79535-47bb-0310-9956-ffa450edef68
* Forgot to add TableColumnColumnNumber testcase to the testsuiteVincent Hennebert2007-11-061-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592386 13f79535-47bb-0310-9956-ffa450edef68
* Finalised testcase for RowGroupBuilder and added it to the testsuiteVincent Hennebert2007-11-062-49/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592384 13f79535-47bb-0310-9956-ffa450edef68