aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fonts
Commit message (Collapse)AuthorAgeFilesLines
* Corrected javadocAdrian Cumiskey2007-12-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@601417 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Bugfix for URI resolution: Make StreamSources without system ↵Jeremias Maerki2007-11-201-3/+7
| | | | | | | | | 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
* 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
* 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
* Avoid null values in generated Font classes so the encoding can be inspected.Jeremias Maerki2007-11-122-2/+10
| | | | | | 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
* Another improvement for font auto-detection:Jeremias Maerki2007-11-0810-60/+76
| | | | | | | 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-0818-158/+337
| | | | | | | | | | | | | | 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
* 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
* More fine-grained mechanism to detect if a font has been used or not. If a ↵Jeremias Maerki2007-11-034-3/+31
| | | | | | 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
* 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
* 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
* Bugzilla #42982:Adrian Cumiskey2007-10-274-208/+232
| | | | | | | | | 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 #43542: Jeremias Maerki2007-10-041-7/+10
| | | | | | Removed dependency on Xalan's XML utilities. Used a method from Commons IO instead. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@581806 13f79535-47bb-0310-9956-ffa450edef68
* PropertyCache phase 2:Andreas L. Delmelle2007-09-211-13/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improvement of the PropertyCache itself should guarantee acceptable performance of the static caches in multi-session environments, which is a possible problem with synchronizedMap * changed CommonFont to use the cache: added CachedCommonFont to contain the properties that are always cacheable CommonFont itself is only cached if the remaining properties are absolutes * changed CommonHyphenation, KeepProperty, ColorProperty and FontFamilyProperty to use the cache Facilitate the implementation for font-selection-strategy: * Changed FontInfo.fontLookup to always return an array of FontTriplet * Changed CommonFont.getFontState to return an array of FontTriplet * Initial modifications to the related LMs: initialized with the font corresponding to the first of the triplets This line, and those below, will be ignored-- M src/java/org/apache/fop/render/rtf/TextAttributesConverter.java M src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/PageNumberCitationLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/PageNumberLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/CharacterLayoutManager.java M src/java/org/apache/fop/layoutmgr/inline/LeaderLayoutManager.java M src/java/org/apache/fop/fonts/FontInfo.java M src/java/org/apache/fop/fo/properties/CommonHyphenation.java M src/java/org/apache/fop/fo/properties/CommonAccessibility.java M src/java/org/apache/fop/fo/properties/CompoundPropertyMaker.java M src/java/org/apache/fop/fo/properties/FontFamilyProperty.java M src/java/org/apache/fop/fo/properties/FixedLength.java M src/java/org/apache/fop/fo/properties/PropertyCache.java M src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java M src/java/org/apache/fop/fo/properties/CommonFont.java M src/java/org/apache/fop/fo/properties/ColorProperty.java M src/java/org/apache/fop/fo/properties/KeepProperty.java M src/java/org/apache/fop/fo/PropertyList.java M src/java/org/apache/fop/fo/FOPropertyMapping.java M src/java/org/apache/fop/fo/expr/PropertyParser.java M src/java/org/apache/fop/fo/expr/ICCColorFunction.java M src/java/org/apache/fop/fo/expr/CMYKcolorFunction.java M src/java/org/apache/fop/fo/expr/RGBColorFunction.java M src/java/org/apache/fop/fo/expr/SystemColorFunction.java M status.xml git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@578311 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #43089Chris Bowditch2007-08-171-2/+2
| | | | | | | | Fix underline for Type1 Fonts in PDF Submitted by Adrian Cumiskey <dev.at.cumiskey.com> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@567078 13f79535-47bb-0310-9956-ffa450edef68
* Changed my mind on handling of width calculation for zero width spaces and ↵Manuel Mall2007-07-221-0/+4
| | | | | | moved it into the Font class where other similar cases are already dealt with git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@558456 13f79535-47bb-0310-9956-ffa450edef68
* * Javadoc update: use {@inheritDoc} instead of @see where applicable, ↵Andreas L. Delmelle2007-07-1820-104/+102
| | | | | | | | | | removal of some @author tags * Additional code cleanup: removal of unused imports (mainly in the fo.flow package) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@557337 13f79535-47bb-0310-9956-ffa450edef68
* Undo changes of r556112Andreas L. Delmelle2007-07-171-8/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@557035 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 42843: Warn on glyph substitution (offered by Max Berger)Andreas L. Delmelle2007-07-142-0/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556239 13f79535-47bb-0310-9956-ffa450edef68
* Addition of a general-purpose int-to-int map to replace Integer-to-Integer ↵Andreas L. Delmelle2007-07-131-6/+7
| | | | | | HashMaps + first usage in TTFFile git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556112 13f79535-47bb-0310-9956-ffa450edef68
* Discover the .otf font extension (OpenType fonts), too.Jeremias Maerki2007-05-281-5/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@542242 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #41831:Jeremias Maerki2007-05-2823-319/+1372
| | | | | | | | | | | | | | | | | | | | - Add support font auto-detection (easier font configuration) including a font cache to speed up the auto-detection process. - Refactoring of the configuration code: All Avalon configuration stuff is extracted into separate "Configurator" classes. - Refactoring of the FOURIResolver. Submitted by: Adrian Cumiskey <fop-dev.at.cumiskey.com> Changes to the patch by jeremias during the review: - Font cache simplified (Java object serialization instead of XML), functionality fixed and moved to the fonts.package. - Relocated default cache file location to user directory. - Fixed the font configuration for PDFDocumentGraphics2D/PDFTranscoder that got lost with the patch. - Fixed a problem with having a non-file URL as font base URL. - Simplified RendererContextInfo stuff to make it easier to understand. - Fixed handling of Type 1 fonts in auto-detection. - Reduced verbosity of font-related log output. - Updated Jakarta Commons IO to version 1.3.1 (the patch depends on it) - Various javadocs improvements git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@542237 13f79535-47bb-0310-9956-ffa450edef68
* Checkstyle only.Jeremias Maerki2007-05-251-7/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@541628 13f79535-47bb-0310-9956-ffa450edef68
* PFMFile is now also used inside FOP's normal operations, so don't log too ↵Jeremias Maerki2007-05-211-2/+2
| | | | | | much in "info" level. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@540042 13f79535-47bb-0310-9956-ffa450edef68
* renderer may be null when called from the PDFTranscoder.Jeremias Maerki2007-03-021-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@513840 13f79535-47bb-0310-9956-ffa450edef68
* Stricter user config file validation.Vincent Hennebert2007-02-141-29/+114
| | | | | | | | | Add a configuration parameter (strict-configuration), enabled by default, which makes FOP throw an exception instead of logging an error when a problem occurs. Invalid resource paths should be catched now. Fixes bug #40120. Submitted by: Adrian Cumiskey (fop-dev AT cumiskey DOT com) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@507539 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #25997,#25999: Jeremias Maerki2007-02-033-18/+72
| | | | | | | | | | | Allow reading of OpenType fonts with CFF data in TTFFile. CFF fonts are still not supported in FOP! Inspired by: Eliot Kimber <drmacro.at.yahoo.com> In addition to the above: xHeight and capHeight are now determined through the OS/2 table if no other source for this information helped. Changed the log level of some info messages to debug to avoid unnecessary log output when TrueType fonts are loaded without XML metrics. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@503317 13f79535-47bb-0310-9956-ffa450edef68
* Fix for PDF corruption when a TrueType font with spaces in its name is ↵Jeremias Maerki2007-01-261-2/+25
| | | | | | embedded and no XML font metrics file for that font is used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@500222 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Seeking to the end of the file is legal, only reading from this ↵Jeremias Maerki2007-01-161-1/+1
| | | | | | position isn't. Fixes running TTFReader with K3.ttf. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@496860 13f79535-47bb-0310-9956-ffa450edef68
* Avoid reading beyond the end of the file. This fixes bug 41117.Simon Pepping2006-12-211-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@489448 13f79535-47bb-0310-9956-ffa450edef68
* Tweaking performance a bit.Jeremias Maerki2006-11-131-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@474414 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #40387: Jeremias Maerki2006-11-131-4/+5
| | | | | | Dealing with IOExceptions for certain large PFM files in a more radical way: load everything into memory, since we basically need random access here. The biggest PFMs I've seen so far are around 20KB so this shouldn't be a big problem, especially as the memory is freed pretty quickly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@474410 13f79535-47bb-0310-9956-ffa450edef68
* Added initial support for loading fonts without a pre-created XML font ↵Jeremias Maerki2006-11-137-63/+384
| | | | | | metrics file. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@474387 13f79535-47bb-0310-9956-ffa450edef68
* Improve compatibility with Apache Harmony: Jeremias Maerki2006-11-121-1/+1
| | | | | | | UnicodeBig does the same as UTF-16BE on read (marker is optional, defaults to big endian). "UnicodeBig" does not seem to be available in Harmony, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@473986 13f79535-47bb-0310-9956-ffa450edef68
* Better debug info.Jeremias Maerki2006-10-271-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@468348 13f79535-47bb-0310-9956-ffa450edef68
* Do not stop building the metrics file if the unicode index is not found for ↵Bertrand Delacretaz2006-10-131-12/+15
| | | | | | | | | a kerning entry. In my tests with OpenType fonts provided with Ubuntu, this happened quite often, probably caused by extraneous kerning entries which do not point to valid glyphs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@463581 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 40739, metrics-version attribute added to TrueType XML metrics files.Bertrand Delacretaz2006-10-122-1/+45
| | | | | | Checked when reloading the file to detect incompatible file versions. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@463180 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 40724, kerning works now for custom CID fonts.Bertrand Delacretaz2006-10-121-45/+85
| | | | | | | | Kerning tables in the metrics xml file now uses unicode character indexes, instead of glyph indexes. Note that this makes the kerning info in these files incompatible with older versions of FOP. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@463175 13f79535-47bb-0310-9956-ffa450edef68
* Just an attempt to clarify what "bf" means.Jeremias Maerki2006-10-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@462743 13f79535-47bb-0310-9956-ffa450edef68
* code style Jeremias Maerki2006-10-112-5/+9
| | | | | | | TAB characters license headers git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@462726 13f79535-47bb-0310-9956-ffa450edef68
* in debug mode, log the font tables namesBertrand Delacretaz2006-10-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454734 13f79535-47bb-0310-9956-ffa450edef68
* Applied patch from bugzilla 5335, comment 10.Bertrand Delacretaz2006-10-103-4/+39
| | | | | | | | | Generates a ToUnicode table for embedded CID fonts. Patch provided by Adam Strzelecki, ono@java.pl. The patch contains code for the FOray project, used with permission (bugzilla 5335 comment #13). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@454725 13f79535-47bb-0310-9956-ffa450edef68