Hi,

this is mainly a question for those who know the inner workings of the
font handling (André, Jörg,...).

Using the fourier package, I get wrong character spacing in scriptstyle.
The difference can be seen by comparing the following PyX and LaTeX code:

#########################################################
from pyx import *

text.set(mode="latex", fontmaps="fourier.map")
text.preamble(r"\usepackage{fourier}")
text.preamble(r"\usepackage{amsmath}")

c = canvas.canvas()
c.text(0,0.5,r"Test ideal $F_\text{ideal}$")
c.text(0,0,r"Test ideal $F_\text{\scriptsize ideal}$")
c.writePDFfile("test")
#########################################################

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{fourier}
\usepackage{amsmath}

\begin{document}
Test ideal $F_\text{ideal}$
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

In the PyX result, the upper line shows the problem while the lower line
corresponds to a possible workaround. Even there the character spacing is
too large compared to the output of the LaTeX code (see e.g. spacing
between a and l). There is also a difference in the heights of the
scriptsize characters between the PyX and the LaTeX output.

A potential reason for the wrong spacing could be the defaultscriptratio
which for fourier is unusually large (0.76). dvidebug (on PyX) and dvitype
(on the LaTeX output) indicate that the character spacing is the same so
that the problem actually seems to be the character height. If one creates 
an lfs file (which is of course not of any use in latex mode), the character
scalings are read correctly from fourier.sty. 

Another style which requires a large defaultscriptratio is mathpazo. When
trying this out, I found extreme slants in the italics, but this is a 
different (though may be related?) story.

While the workaround by explicitly requiring scriptsize works more or less,
it would be nice to have correct character spacing. The output without 
workaround is just ugly.

Best regards,
Gert

-- 
 Gert-Ludwig Ingold        email: [email protected]
 Institut für Physik       Phone: +49-821-598-3234
 Universität Augsburg      Fax  : +49-821-598-3222
 D-86135 Augsburg          WWW  : www.physik.uni-augsburg.de/theo1/ingold
 Germany                   PGP  : 86FF5A93, key available from homepage

Attachment: pgp4z4D662JSc.pgp
Description: PGP signature

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to