Will,<div><br></div><div>Thank you for this patch, i've been waiting for it since months ago.  </div><div><br></div><div>Yours,</div><div>Vadim</div><div><br></div><div><br><br><div class="gmail_quote">On Sun, Feb 27, 2011 at 8:28 AM, Will Robertson <span dir="ltr"><<a href="mailto:wspr81@gmail.com">wspr81@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 2011-02-20 03:51:03 +1030, <a href="mailto:mskala@ansuz.sooke.bc.ca" target="_blank">mskala@ansuz.sooke.bc.ca</a> said:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Manually setting \fontdimen3 and \fontdimen4 seems to correctly change the<br>
space stretchability - and in fact is the workaround I'm using for the<br>
time being - but it must be repeated after every size change and so it<br>
breaks semantic markup.  That is the case even with no use of WordSpace in<br>
the document at all.<br>
</blockquote>
<br></div>
Sorry I'm late to this discussion. Been overly busy.<br>
This is pretty clearly a bug in the WordSpace feature.<br>
<br>
The code here is<br>
<br>
   \dim_set:Nn \@tempdima {#1\fontdimen2\zf@basefont}<br>
   \dim_set:Nn \@tempdimb {#2\fontdimen3\zf@basefont}<br>
   \dim_set:Nn \@tempdimc {#3\fontdimen4\zf@basefont}<div class="im"><br>
...<br>
 \tl_put_right:Nx \l_fontspec_postadjust_tl {<br></div>
   \fontdimen2\font\the\@tempdima<div class="im"><br>
   \fontdimen3\font\the\@tempdimb<br>
   \fontdimen4\font\the\@tempdimc<br>
 }<br>
<br></div>
which is later used internally in \DeclareFontShape:<br>
<br>
\DeclareFontShape{\zf@enc}{\zf@family}{#2}{#3}<br>
     {\l_fontspec_nfss_tl}{\l_fontspec_postadjust_tl}<br>
<br>
<br>
So it seems like I should be writing something more like<br>
<br>
 \tl_put_right:Nn \l_fontspec_postadjust_tl {<br>
   \fontdimen2\font=#1\fontdimen2\font<br>
   \fontdimen3\font=#2\fontdimen3\font<br>
   \fontdimen4\font=#3\fontdimen4\font<br>
 }<br>
<br>
instead. Does this seem right? (This code dates back years and years, so I might not have known what I was doing when this was first written.)<br>
<br>
If replies could be CC-ed to me via email I'll be more likely to respond :)<br>
<br>
Cheers,<br><font color="#888888">
Will</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
 <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>