Hi Michael,
On 18.03.08, Michael SCHINDLER wrote:
> On 18.03.08, Joerg Lehmann wrote:
> > On 17.03.08, Michael SCHINDLER wrote:
> > > I have found yet another problem in the new font system. It appears
> > > with the combination
> > >
> > > Utopia fonts (fourier package) -- several pages in a document
> >
> > I didn't have time to have a closer look but I checked whether
> > it works with the PS writer - and it does so.
>
> It appears to work with PS -- but it does not. The python run does not
> fail with an error message such as in PDF, but the resulting file does
> not display properly. A look into the file shows that also the wrong
> symbols are printed:
>
> a --> "\000"
> t, h --> "\000", "\001"
>
> This clearly shows that the problem is similar.
Thanks, I didn't check that.
> The failure is, I think a design problem in the handling of the
> characters which are collected in the font. The font knows precisely
> about its characters, but when the encoding is generated, this is done
> in the "context" of the processPDF methods. The context, however, is
> not inter-pagial and therefore does not know about the glyphs which
> came on other pages.
Yes that seems to be the problem. We didn't think about that when
writing the code. Hmmm....
> I therefore think, that the context is wrong place to put the
> encodings. It might be more apt in the TeXfont.
I guess not, the TeXfont should be unaware of the encoding. But
somewhere else...
> > So my first guess would be that there is a problem with the resource
> > merging in the PDF writer. Maybe you can locate the bug by comparing the
> > PS and PDF logic in pyx/font/encoding.py and/or pyx/font/font.py.
> >
> > Otherwise, I'll have a look during the Easter holidays.
>
> holidays?? how nice :-(
Yes, although I have to prepare my lecture ;-) But anyway, this issue is
more involved than I originally thought and I would not like to change
things like this without André.
Cheers,
Jörg
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel