You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Aaron Optimizer Digulla <di...@hepe.com> on 2000/11/16 19:22:06 UTC

[BUG] new font-file.xsl produces fonts without width

I'm currently porting FOP to Xalan 2. I could fix all the
compilation errors due to the new API but then I was stuck
because the resulting PDF files looked wrong. After several
hours of debugging, I finally found the cause. Courier.java
(as an example) looks like this:

    public class TimesRoman extends Font {
	...
	private final static int[] width;

        static {
	        width = new int[256];
	
	}
	...

ie. the array was created but not filled. I reverted to the
old code and it works again. I guess this is because of this
comment in the file src/codegen/font-file.xsl:

    <!-- note that match in xsl:key doesn't like document('charlist.xml'), so the charlist
         must be merged with the source xml at build time by the Xslt task -->

Incidentially, this step is missing; charlist.xml is not merged
during the setup phase. Can someone fix this, please ?

Also, it seems that the CVS repository is currently in an
unstable state: FontMetrics.java has been modified but
font-file.xsl has not.

Thanks,

-- 
==============================================
Sowatec AG,       CH-8330 Pfäffikon (ZH)
Witzbergstr. 7,   http://www.sowatec.com
Tel: +41-(0)1-952 55 55
Fax: +41-(0)1-952 55 66
----------------------------------------------
Aaron "Optimizer" Digulla, digulla@sowatec.com
==============================================