[XeTeX] issue with HyphenChar and fontspec

Pablo Rodríguez oinos at web.de
Sat Apr 14 10:35:50 CEST 2007

Will Robertson wrote:
> On 14/04/2007, at 10:19 , Pablo Rodríguez wrote:
>> For some strange reason, the following document gives an extra blank
>> space before those texts where the HyphenChar is defined:
> What version of fontspec do you have?
> It seems okay to me -- do you see the same problem with
> \documentclass[a4paper,12pt,draft]{article}
> \usepackage{fontspec}
> \newcommand{\supertext}{\addfontfeature{HyphenChar="2013}}
> \setromanfont{Hoefler Text}
> \begin{document}
> \rule{1ex}{1ex}\supertext\rule{1ex}{1ex}
> \end{document}
> for example?

  [2006/12/21 v1.13 Advanced font selection for XeLaTeX]

I see the same problem with your example. In
"\rule{1ex}{1ex}\rule{1ex}{1ex}\supertext\rule{1ex}{1ex}" the third rule
has an extra blank rule before.

>> \newcommand{\supertext}{\addfontfeature{HyphenChar="2013}}
>> metafísica: \supertext{idea} y la \supertext{energía}. Se trata de un
> Careful, you either mean {\supertext idea} here or
>    \newcommand{\supertext}[1]{{\addfontfeature{HyphenChar="2013}#1}}

No matter which command I use, the extra blank space occurs before.
Actually is not an extra blank space, but a wider space where the
\supertext command is inserted. And this wider space doesn't occur when
the line has an overfull \hbox (and this is a chapter title and it is
right also in both TOC and headers).

Any hint of what I could be wrong here?




More information about the XeTeX mailing list