[XeTeX] \sloppy or \tolerance with fontspec

Jonathan Kew jfkthame at googlemail.com
Sat Mar 7 22:59:55 CET 2009


On 7 Mar 2009, at 21:38, Fr. Michael Gilmary wrote:

> Jonathan Kew wrote:
>> I don't think fontspec touches \tolerance. With an example like:
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%
>> \documentclass{article}
>> \usepackage{fontspec}
>> \setmainfont{Times New Roman}
>> \usepackage{lipsum}
>> \begin{document}
>>
>> \lipsum[4]
>>
>> \sloppy
>> \lipsum[4]
>>
>> \end{document}
>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%
>>
>> I see \sloppy having the expected effect (the first paragraph has an
>> overfull hbbox; the second doesn't, but has some worse spacing).
>> Perhaps the particular combinations of text and fonts you were using
>> just didn't happen to come out any different with changed \tolerance?
>>
>>
>
> Hi John and Jonathan:
>
> But a strange thing happens when you load: \usepackage[latin] 
> {polyglossia}
>
> All the spacing problems seem to disappear ... and the first paragraph
> from your example doesn't look sloppy --- neither is there an  
> "overfull
> \hbox" message about it.

That's not strange.... enabling Latin hyphenation patterns instead of  
English will change the line-breaks, and as the text is "fake Latin"  
it's likely they may work better.

JK



More information about the XeTeX mailing list