]> source.dussan.org Git - xmlgraphics-fop.git/commit
Improved font auto-detection and handling of AWT-supplied fonts in order to achieve...
authorJeremias Maerki <jeremias@apache.org>
Thu, 8 Nov 2007 15:13:24 +0000 (15:13 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 8 Nov 2007 15:13:24 +0000 (15:13 +0000)
commit11aa26d46621bd6e74143124868eb22906514677
treeda7ad7c0285f6150440fa6050a563c4c83b1211a
parent890948b51632025b8d0f7e3157b1cbb68082ede3
Improved font auto-detection and handling of AWT-supplied fonts in order to 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
40 files changed:
src/codegen/fonts/Courier.xml
src/codegen/fonts/CourierBold.xml
src/codegen/fonts/CourierBoldOblique.xml
src/codegen/fonts/CourierOblique.xml
src/codegen/fonts/Helvetica.xml
src/codegen/fonts/HelveticaBold.xml
src/codegen/fonts/HelveticaBoldOblique.xml
src/codegen/fonts/HelveticaOblique.xml
src/codegen/fonts/Symbol.xml
src/codegen/fonts/TimesBold.xml
src/codegen/fonts/TimesBoldItalic.xml
src/codegen/fonts/TimesItalic.xml
src/codegen/fonts/TimesRoman.xml
src/codegen/fonts/ZapfDingbats.xml
src/codegen/fonts/font-file.xsl
src/java/org/apache/fop/fonts/CIDFont.java
src/java/org/apache/fop/fonts/CustomFont.java
src/java/org/apache/fop/fonts/Font.java
src/java/org/apache/fop/fonts/FontInfo.java
src/java/org/apache/fop/fonts/FontMetrics.java
src/java/org/apache/fop/fonts/FontReader.java
src/java/org/apache/fop/fonts/FontSetup.java
src/java/org/apache/fop/fonts/FontUtil.java
src/java/org/apache/fop/fonts/LazyFont.java
src/java/org/apache/fop/fonts/MultiByteFont.java
src/java/org/apache/fop/fonts/MutableFont.java
src/java/org/apache/fop/fonts/apps/TTFReader.java
src/java/org/apache/fop/fonts/autodetect/FontFileFinder.java
src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
src/java/org/apache/fop/fonts/truetype/TTFFile.java
src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java
src/java/org/apache/fop/fonts/type1/PFMFile.java
src/java/org/apache/fop/fonts/type1/Type1FontLoader.java
src/java/org/apache/fop/pdf/PDFFactory.java
src/java/org/apache/fop/pdf/PDFResources.java
src/java/org/apache/fop/render/afp/fonts/AFPFont.java
src/java/org/apache/fop/render/afp/fonts/RasterFont.java
src/java/org/apache/fop/render/java2d/FontMetricsMapper.java
src/java/org/apache/fop/render/java2d/FontSetup.java
status.xml