Re: Java text handling

2004-05-21 Thread Christian Z.
Hi Peter!

 Do any of the list denizens have experience with Java font handling and 
 2D text layout?  I'm new to it, and would like to be able to bounce 
 questions off someone further up the food chain, on or off-line.

The typesetting is done Font.layoutGlyphVector and
java.awt.font.GlyphVector.performDefaultLayout. Currently TrueType is
supported and therefore the philosophy 'do everything within the font'.
This makes the Java API very hard to extend and not very modular. Cause
OpenType follows the philosophy 'do as much of the typesetting within
the application' it's hard to support both the same time. There are
typesetting issues which are font dependent and some which are not.

My advice: Use UTA and provide a wrapper around the Java font class in
form of a Script [1]. ;-)

Regards,
Christian Ziesemer

[1]
http://inghuimische.drhuim.de/uta/javadoc/de/inghuimische/uta/typeset/Script.html



Re: Java text handling

2004-05-21 Thread Jeremias Maerki
There might be a problem: UTA uses JGraphT which is LGPL. FOP cannot
depend on LGPL software (Apache licence policy).

There is a graph subproject inside Jakarta Commons. Maybe this could
be used instead of JGraphT.

Anyway, how does UTA relate to Luca's recent patch on line breaking?

On 21.05.2004 17:27:35 Christian Z. wrote:
 My advice: Use UTA and provide a wrapper around the Java font class in
 form of a Script [1]. ;-)



Jeremias Maerki



Re: Java text handling

2004-05-21 Thread Christian Z.
Hi Jeremias!

 There is a graph subproject inside Jakarta Commons. Maybe this could
 be used instead of JGraphT.

I'll have a look at it, thanks.

 Anyway, how does UTA relate to Luca's recent patch on line breaking?

In no way. While Luca seems to have reimplemented the glue/box/penalty
model, I have a generalization/simplification. I think it is similar to
what Knuth mentions in the Addendum in Digital Typography, Breaking
Paragraphs into Lines, as socalled kerfs model. In UTA there are only
Items. A break is allowed behind every item, an item has a penalty and
different widths depending on its position.

Christian Ziesemer




Re: Java text handling

2004-05-20 Thread Glen Mazza
Perhaps these links may be of help:

From the Java tutorials:

http://java.sun.com/docs/books/tutorial/2d/textandfonts/index.html

http://java.sun.com/developer/onlineTraining/Media/2DText/
(Warning:  very old, from 1998)

Forums for questions:

http://forum.java.sun.com/forum.jsp?forum=20

Glen


--- Peter B. West [EMAIL PROTECTED] wrote:
 Do any of the list denizens have experience with
 Java font handling and 
 2D text layout?  I'm new to it, and would like to be
 able to bounce 
 questions off someone further up the food chain, on
 or off-line.
 
 Peter
 -- 
 Peter B. West
http://www.powerup.com.au/~pbwest/resume.html



Java text handling

2004-05-19 Thread Peter B. West
Do any of the list denizens have experience with Java font handling and 
2D text layout?  I'm new to it, and would like to be able to bounce 
questions off someone further up the food chain, on or off-line.

Peter
--
Peter B. West http://www.powerup.com.au/~pbwest/resume.html


Re: Java text handling

2004-05-19 Thread Clay Leeds
Peter B. West wrote:
Do any of the list denizens have experience with Java font handling and 
2D text layout?  I'm new to it, and would like to be able to bounce 
questions off someone further up the food chain, on or off-line.

Peter
My experience has more to do with JRE and FONT handling, rather than 
what you probably want. Suffice it to say, that when you're doing 
testing use either IBM JRE 1.3.x+ or Sun JRE 1.4.0_b09+ as the AWT 
component of earlier versions have significant, sporadic font kerning 
issues. PDF/Postscript appears to be OK, though.

Web Maestro Clay