But still there are things to be improved. If i want to change WordSpace locally, I have to add some other dummy feature (say, LetterSpace=0), or this change of inter-word space will be applied globally to the current font.
Vadim On Sun, Feb 27, 2011 at 12:10 PM, Vadim Radionov <vadim.radio...@gmail.com>wrote: > Will, > > Thank you for this patch, i've been waiting for it since months ago. > > Yours, > Vadim > > > > On Sun, Feb 27, 2011 at 8:28 AM, Will Robertson <wsp...@gmail.com> wrote: > >> On 2011-02-20 03:51:03 +1030, msk...@ansuz.sooke.bc.ca said: >> >> Manually setting \fontdimen3 and \fontdimen4 seems to correctly change >>> the >>> space stretchability - and in fact is the workaround I'm using for the >>> time being - but it must be repeated after every size change and so it >>> breaks semantic markup. That is the case even with no use of WordSpace >>> in >>> the document at all. >>> >> >> Sorry I'm late to this discussion. Been overly busy. >> This is pretty clearly a bug in the WordSpace feature. >> >> The code here is >> >> \dim_set:Nn \@tempdima {#1\fontdimen2\zf@basefont} >> \dim_set:Nn \@tempdimb {#2\fontdimen3\zf@basefont} >> \dim_set:Nn \@tempdimc {#3\fontdimen4\zf@basefont} >> >> ... >> \tl_put_right:Nx \l_fontspec_postadjust_tl { >> \fontdimen2\font\the\@tempdima >> >> \fontdimen3\font\the\@tempdimb >> \fontdimen4\font\the\@tempdimc >> } >> >> which is later used internally in \DeclareFontShape: >> >> \DeclareFontShape{\zf@enc}{\zf@family}{#2}{#3} >> {\l_fontspec_nfss_tl}{\l_fontspec_postadjust_tl} >> >> >> So it seems like I should be writing something more like >> >> \tl_put_right:Nn \l_fontspec_postadjust_tl { >> \fontdimen2\font=#1\fontdimen2\font >> \fontdimen3\font=#2\fontdimen3\font >> \fontdimen4\font=#3\fontdimen4\font >> } >> >> 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.) >> >> If replies could be CC-ed to me via email I'll be more likely to respond >> :) >> >> Cheers, >> Will >> >> >> >> >> >> -------------------------------------------------- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex >> > >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex