[XeTeX] Super- and subscript take up too much space

Morten Høgholm morten.hoegholm at latex-project.org
Fri Aug 25 19:11:53 CEST 2006


On Fri, 25 Aug 2006 19:00:21 +0200, Will Robertson <wspr81 at gmail.com>  
wrote:

> On 26/08/2006, at 2:04 , Alex Lubberts wrote:
>
>> Sorry to bother you again, but I've noticed another problem. The
>> numbers
>> in \vfrac, as well as the text in \super- and \subscript seem to
>> take up
>> too much space.
>
> Dear me, it's been a long week. This is the terrible problem of a
> missing % somewhere in fontspec. I'll go hunting.

\newcommand\zf at calc@scale[1]{%
   \begingroup
     \rmfamily
     \setlength\@tempdima{\fontdimen#1\font}%
     \setlength\@tempdimb{\fontdimen#1\zf at basefont}%
     \setlength\@tempdimc{1pt*\ratio{\@tempdima}{\@tempdimb}}%
     \xdef\zf at scale{\strip at pt\@tempdimc} %<--- HERE!
     \zf at PackageInfo{\zf at fontname\space scale = \zf at scale}%
   \endgroup}


-- 
Morten


More information about the XeTeX mailing list