[XeTeX] WordSpace issue again

Vadim Radionov vadim.radionov at gmail.com
Sun Jan 17 21:25:48 CET 2010


Dear all,

Here is my summary of WordSpace odds:

As far as I can see, WordSpace with single parameter sets all 3 fontdimens
to the same value (and do not scale them to the same ratio, as the manual
states).  In the second invocation it uses the previously set values, not
the default ones (this is probably not a bug) and scales everything again,
UNLESS the new ratio equals the previous one (examples 3.1 and 3.2).  The
bad thing is, that if used stand-alone (example 3 and 4) the changes spread
across the enclosing group boundary.

Yours,
Vadim

(fontspec.sty v1.18)

% -*- tex-command: "xelatex" -*-
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Garamond Premier Pro}

\def\test{Space=\the\fontdimen2\font+\the\fontdimen3\font–\the\fontdimen4\font/\the\spaceskip}

\begin{document}
1. {This is a test. \par \test}

2. {\addfontfeature{WordSpace={1,1,1}}This is a test. \par \test} \par \test

3. {\addfontfeature{WordSpace={2}}This is a test. \par \test} \par \test

3.1. {\addfontfeature{WordSpace={2}}This is a test. \par \test} \par \test

3.2. {\addfontfeature{WordSpace={2.1}}This is a test. \par \test} \par \test

4. {\addfontfeature{LetterSpace=2,WordSpace=2.5}This is a test. \par \test}
\par \test
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20100117/8facacb1/attachment.html>


More information about the XeTeX mailing list