Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordSpace issues #35

Open
wspr opened this issue Jan 18, 2010 · 0 comments
Open

WordSpace issues #35

wspr opened this issue Jan 18, 2010 · 0 comments
Labels

Comments

@wspr
Copy link
Collaborator

wspr commented Jan 18, 2010

Via the XeTeX mailing list:

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)

\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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant