I wonder where this got broken. I believe this used to work. 

If this change has an effect on the XML files generated, then we should
be careful because people might not recreate their metric files and
subsequently run into problems.

On 11.10.2006 13:15:54 Bertrand Delacretaz wrote:
> Hi FOPpers,
> 
> See http://issues.apache.org/bugzilla/show_bug.cgi?id=40724 , kerning
> doesn't work for me with user-specified CID fonts at the moment.
> 
> IIUC the code, org.apache.fop.layoutmgr.inline.TextLayoutManager
> expects unicode indexes for kerning pairs, but currently the TTFReader
> writes glyph indexes in the XML file, like:
> 
>   <kerning kpx1="3">
>     <pair kern="-279" kpx2="4"/>
>   </kerning>
> 
> Where 3 and 4 are glyph indexes (I'm playing with a test font with
> very few glyphs, it's easier).
> 
> I've tried changing the TTFFile code to use unicode indexes for kpx1
> and kpx2 and it seems to work - anything against making this change?
> 
> -Bertrand



Jeremias Maerki

Reply via email to