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 Christopher Burkey <cb...@einnovation.com> on 2002/02/22 06:09:18 UTC

JDK 1.4 and fonts

Hi,

	Has anyone been able to compile FOP with JDK 1.4? It gets this far in the 
build process:

in: ./build/src/codegen/extproperties.xml
style: ./build/src/codegen/enumgen.xsl
out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
============================
     [style] Transforming into 
C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf
     [style] Loading stylesheet 
C:\src-workspaces\per\xml-fop\.\build\src\codegen\code-point-mapping.xsl
     [style] Processing 
C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml to 
C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf\CodePointM 
apping.java
     [style] Failed to process 
C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml

	My end goal is to improve the appearance of font spacing, within the AWT 
Renderer, using JDK 1.4's improved font handling.

	I have compiled with 1.3 then tested the AWT renderer under 1.4. I think 
there are improvements with fonts spacing over JDK 1.3 but its still not 
perfect.

	I have tried to comment out this line:

         // space is rendered larger than given by
         // the FontMetrics object
        // if (i <= 32)
        //     w = (int)(1.4 * fmt.charWidth(i) * FONT_FACTOR);
       //  else
             w = (int)(fmt.charWidth(i) * FONT_FACTOR);


	But that did nothing. Attached is a fo file that displays the problems 
with font space. In my attached file you can change the font size and it 
looks much better. If anyone knows what it could be please let me know.


BTW: This is all using 0.20.3 Under Windows 2000, JDK 1.4 final.

Thanks!

Re: JDK 1.4 and fonts

Posted by Satoshi Ishigami <is...@victokai.co.jp>.
see below site:

Endorsed Standards Override Mechanism
http://java.sun.com/j2se/1.4/docs/guide/standards/index.html

JDK1.4 includes such as Xalan-J 2.2.D11 in rt.jar by default,
so current sh/bat script or build.xml may be not able to build 
FOPwhen you use with JDK1.4 .

Regards.

---
Satoshi Ishigami   VIC TOKAI CORPORATION



On Fri, 22 Feb 2002 00:09:18 -0500 , Christopher Burkey wrote:

> Hi,
> 
> 	Has anyone been able to compile FOP with JDK 1.4? It gets this far in 
the 
> build process:
> 
> in: ./build/src/codegen/extproperties.xml
> style: ./build/src/codegen/enumgen.xsl
> out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
> ============================
>      [style] Transforming into 
> C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf
>      [style] Loading stylesheet 
> C:\src-workspaces\per\xml-fop\.\build\src\codegen\code-point-mapping.xsl
>      [style] Processing 
> C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml to 
> C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf\CodePointM
 
> apping.java
>      [style] Failed to process 
> C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml
> 
> 	My end goal is to improve the appearance of font spacing, within the 
AWT 
> Renderer, using JDK 1.4's improved font handling.
> 
> 	I have compiled with 1.3 then tested the AWT renderer under 1.4. I 
think 
> there are improvements with fonts spacing over JDK 1.3 but its still not 
> perfect.
> 
> 	I have tried to comment out this line:
> 
>          // space is rendered larger than given by
>          // the FontMetrics object
>         // if (i <= 32)
>         //     w = (int)(1.4 * fmt.charWidth(i) * FONT_FACTOR);
>        //  else
>              w = (int)(fmt.charWidth(i) * FONT_FACTOR);
> 
> 
> 	But that did nothing. Attached is a fo file that displays the problems
 
> with font space. In my attached file you can change the font size and it 
> looks much better. If anyone knows what it could be please let me know.
> 
> 
> BTW: This is all using 0.20.3 Under Windows 2000, JDK 1.4 final.
> 
> Thanks!
> 
> _____________________________________
> Christopher Burkey    cburkey@einnovation.com	
> President                    513-542-3401
> eInnovation Inc.          http://einnovation.com
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: JDK 1.4 and fonts

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Ramaprabhu Janakiraman wrote:

> funny, 
>    i compiled 0.20.3-rc  with 1.4-rc  and everything was smooth
> except for some problems with svg/PDFGraphics2D.java (a new abstract
> method in java.awt.GraphicsConfiguration ) that i had to put a stub for, 


This worked for me too but then it didn't compile anymore under 1.3 ;-(


> but it breezed thro' the encodings. 


> 
> -ram

Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: JDK 1.4 and fonts

Posted by Ramaprabhu Janakiraman <ra...@arl.wustl.edu>.
funny, 
   i compiled 0.20.3-rc  with 1.4-rc  and everything was smooth
except for some problems with svg/PDFGraphics2D.java (a new abstract
method in java.awt.GraphicsConfiguration ) that i had to put a stub for, 
but it breezed thro' the encodings. 

-ram

On Thursday 21 February 2002 11:09 pm, you wrote:
> Hi,
>
> 	Has anyone been able to compile FOP with JDK 1.4? It gets this far in the
> build process:
>
> in: ./build/src/codegen/extproperties.xml
> style: ./build/src/codegen/enumgen.xsl
> out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java
> ============================
>      [style] Transforming into
> C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf
>      [style] Loading stylesheet
> C:\src-workspaces\per\xml-fop\.\build\src\codegen\code-point-mapping.xsl
>      [style] Processing
> C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml to
> C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf\CodePoint
>M apping.java
>      [style] Failed to process
> C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml
>
> 	My end goal is to improve the appearance of font spacing, within the AWT
> Renderer, using JDK 1.4's improved font handling.
>
> 	I have compiled with 1.3 then tested the AWT renderer under 1.4. I think
> there are improvements with fonts spacing over JDK 1.3 but its still not
> perfect.
>
> 	I have tried to comment out this line:
>
>          // space is rendered larger than given by
>          // the FontMetrics object
>         // if (i <= 32)
>         //     w = (int)(1.4 * fmt.charWidth(i) * FONT_FACTOR);
>        //  else
>              w = (int)(fmt.charWidth(i) * FONT_FACTOR);
>
>
> 	But that did nothing. Attached is a fo file that displays the problems
> with font space. In my attached file you can change the font size and it
> looks much better. If anyone knows what it could be please let me know.
>
>
> BTW: This is all using 0.20.3 Under Windows 2000, JDK 1.4 final.
>
> Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: JDK 1.4 and fonts

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Christopher Burkey wrote:

> Hi,
> 
>     Has anyone been able to compile FOP with JDK 1.4? It gets this far 
> in the build process:


[..]


> C:\src-workspaces\per\xml-fop\build\src\org\apache\fop\render\pdf\CodePointM 
> apping.java
>     [style] Failed to process 
> C:\src-workspaces\per\xml-fop\build\src\codegen\encodings.xml


This worked for me (under Linux) as somebody already mentioned but
there will be another error later ..
Has anybody else these problems under windows ?

[..]

> BTW: This is all using 0.20.3 Under Windows 2000, JDK 1.4 final.
> 
> Thanks!

Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org