aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
Commit message (Collapse)AuthorAgeFilesLines
* Moved the creation of grid units to the FO tree building stage. Brought a ↵Vincent Hennebert2007-11-1326-712/+1153
| | | | | | | | | | | | | 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
* 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-124-8/+44
| | | | | | 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-111-5/+5
| | | | | | | 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-0813-64/+95
| | | | | | | 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-0824-228/+433
| | | | | | | | | | | | | | 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
* 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
* Fixed regression: transparent-page-background was not recognized for PNG output.Jeremias Maerki2007-11-061-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592554 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
* Added check for table-cells which span more rows than available in their ↵Vincent Hennebert2007-11-064-15/+30
| | | | | | parent element git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592392 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: FOPFonts proc is not used/needed anymore.Jeremias Maerki2007-11-061-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592341 13f79535-47bb-0310-9956-ffa450edef68
* Renamed signalNewRow method into more accurate signalRowEndVincent Hennebert2007-11-052-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592113 13f79535-47bb-0310-9956-ffa450edef68
* Moved table-related FObj into new o.a.fop.fo.flow.table packageVincent Hennebert2007-11-0541-101/+103
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592103 13f79535-47bb-0310-9956-ffa450edef68
* First step towards building row groups at the FO tree stage. The built row ↵Vincent Hennebert2007-11-058-9/+302
| | | | | | | | | | groups are currently not used and the TableRowIterator stuff remains unchanged; this allows for more atomic commits. - introduced RowGroupBuilder hierarchy; - moved TableRowIterator test cases into fotree, and integrated them in the test suite. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592058 13f79535-47bb-0310-9956-ffa450edef68
* Disabled debug outputsVincent Hennebert2007-11-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@592016 13f79535-47bb-0310-9956-ffa450edef68
* Make Vincent happy.Jeremias Maerki2007-11-051-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591978 13f79535-47bb-0310-9956-ffa450edef68
* Added support for fo:markers on fo:inline and fo:basic-link.Andreas L. Delmelle2007-11-0411-53/+70
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591756 13f79535-47bb-0310-9956-ffa450edef68
* Completely reimplemented the PDFTextPainter. All SVG text (including flow ↵Jeremias Maerki2007-11-0313-495/+1028
| | | | | | | | text, but excluding special cases with filters) is now painted in PDF text primitives. The whole thing compiles against and runs with Batik 1.6 but was developed against Batik Trunk (1.7). The TextBridge for SVG 1.2 text is omitted because we're still on Batik 1.6 and FOP wouldn't compile with it. The full feature set is only available with Batik 1.7, of course. With Batik 1.6, font selection may not work as expected. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591587 13f79535-47bb-0310-9956-ffa450edef68
* Added method to convert from inches to points.Jeremias Maerki2007-11-031-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591585 13f79535-47bb-0310-9956-ffa450edef68
* Zero Word Joiner was missing in the constants.Jeremias Maerki2007-11-031-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591584 13f79535-47bb-0310-9956-ffa450edef68
* More fine-grained mechanism to detect if a font has been used or not. If a ↵Jeremias Maerki2007-11-035-19/+51
| | | | | | font list is given for a text run and each character should be painted in the right font, it might be accessed but never really used. Needed for PDF text painting improvements. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591583 13f79535-47bb-0310-9956-ffa450edef68
* Method for dumping all font triplets to System.out for diagnostic purposes.Jeremias Maerki2007-11-031-0/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591581 13f79535-47bb-0310-9956-ffa450edef68
* Mapping "SansSerif" and "Monospaced" (widely used in SVG land) to our Base ↵Jeremias Maerki2007-11-031-0/+12
| | | | | | 14 fonts. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591579 13f79535-47bb-0310-9956-ffa450edef68
* Correction: use super.toString() to still have the internal instance idAndreas L. Delmelle2007-11-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591577 13f79535-47bb-0310-9956-ffa450edef68
* Added override for FObj.toString() for convenience during debugging.Andreas L. Delmelle2007-11-031-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591575 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 42748: Added support for ids on empty fo:inlinesAndreas L. Delmelle2007-11-022-12/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591437 13f79535-47bb-0310-9956-ffa450edef68
* Reworked the creation of implicit columns to match new behaviour: the number ↵Vincent Hennebert2007-11-025-63/+83
| | | | | | of columns of a table without explicit fo:table-column is set by the row that has the most columns. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591299 13f79535-47bb-0310-9956-ffa450edef68
* Some fonts have spaces in their names (ex. "Arial Unicode MS"). This change ↵Jeremias Maerki2007-10-312-9/+23
| | | | | | modifies font auto-detection so both "ArialUnicodeMS" (as before) and "Arial Unicode MS" (new) are registered for a font. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590736 13f79535-47bb-0310-9956-ffa450edef68
* - Enforced check for proper number of columns in a table. Now if a table has ↵Vincent Hennebert2007-10-312-0/+14
| | | | | | | | | explicit table-columns, those fix the total number of columns and any row having more columns will lead to an error. - Set up a framework for unit-testing classes from the FO tree, and added some first testcases for the number of columns in tables. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590705 13f79535-47bb-0310-9956-ffa450edef68
* Url is actually a UriAdrian Cumiskey2007-10-311-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590616 13f79535-47bb-0310-9956-ffa450edef68
* Simple renaming of method following patch that was recently appliedAdrian Cumiskey2007-10-301-2/+2
| | | | | | | http://issues.apache.org/bugzilla/show_bug.cgi?id=42982 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590514 13f79535-47bb-0310-9956-ffa450edef68
* Removed no longer useful setCurrentColumnIndex method on ↵Vincent Hennebert2007-10-302-13/+1
| | | | | | ColumnNumberManager. The column number is now automatically updated in signalUsedColumnNumbers git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590177 13f79535-47bb-0310-9956-ffa450edef68
* - factored the management of column numbers into a separate helper classVincent Hennebert2007-10-3010-623/+437
| | | | | | | | | | | | | - moved the PendingSpan inner class from TableFObj into TableCellContainer, where it's a bit more appropriate - simplified the getTable method in TableFObj by overriding it in Table - simplified the propertyMaker for column-number: now it's the table-cell which notifies the parent table-body that it starts a new row. As an additional benefit the propertyMaker for starts-row is now called only once, instead of twice before - reworked, factored and simplified the handling of column indices in TableCellContainer - bugfix: repeated fo:table-column were not added at the right place in the column lists - bugfix: width set on cell on second row was applied to the column's width, whereas it shouldn't - checkstyle cleanup git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@590136 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #42982:Adrian Cumiskey2007-10-275-211/+244
| | | | | | | | | Applied [PATCH] 42982 - Support Fonts in JAR files Nice work Max, I look forward to you joining us soon :) Submitted by: Max Berger <max.at.berger.name> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588858 13f79535-47bb-0310-9956-ffa450edef68
* Applied [PATCH] 43143 - ExpertEncoding and ExpertSubsetEncoding not detected ↵Adrian Cumiskey2007-10-263-4/+11
| | | | | | | | | | | for Type 1 fonts Many thanks to William (wliem AT allette DOT com DOT au) for reporting the problem. NOTE: More work needs to be done to provide support for ExpertEncoding (this is documented in src/codegen/fonts/encodings.xml within this patch). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588755 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43042:Adrian Cumiskey2007-10-266-10/+20
| | | | | | | | | | Applied [PATCH] 43042 - PS extension implementation code cleanup. Partially modified the patch due to code changes. Many thanks to Andrejus Chaliapinas for this patch :) Submitted by: Andrejus Chaliapinas <a.chaliapinas.at.infosana.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588749 13f79535-47bb-0310-9956-ffa450edef68
* Applying [PATCH] 43587 - Multiple ps:comment-? within fo:declarations causes ↵Adrian Cumiskey2007-10-261-3/+9
| | | | | | ClassCastException git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588733 13f79535-47bb-0310-9956-ffa450edef68