12

I've just realised that I can get somewhat similar letterspacing effects using either the microtype or fontspec packages; for example:

\documentclass{article}
\usepackage{fontspec}
\usepackage{microtype}
\setmainfont{Iwona}
\begin{document}

\textls*{Hello World}\par
{\addfontfeature{LetterSpace=12}Hello World}

\end{document}

The \addfontfeature can obviously be wrapped appropriately, but this is a MWE gives:

output of above

There are differences between the two, but could anyone suggest which should be preferred?

My naïve guess is that if one is already using fontspec then the LetterSpacing font feature should be preferred, as the using microtype's \textls can interfere with it and require Renderer=Basic to be set.

  • 1
    Better type long paragraphs and observe also the hyphenation and kerning properties to decide. – percusse Nov 12 '14 at 12:47
  • 4
    Nobody should letter space lowercase text, unless they're sheep stealers. Letter spacing small caps is good, but requires Renderer=Basic, if \textls is used. So my vote goes to the \addfontfeature way, which is also compatible with XeLaTeX. – egreg Nov 12 '14 at 13:02
  • @egreg, Yes, I was initially thinking of using this in a spaced-small-caps setting. My example was maybe a bit misleading, but was wondering whether there were any common gotchas about using either method in specific situations---e.g. having to use basic renderer inside \textls – Sam Mason Nov 12 '14 at 13:10
  • @percusse, sorry I don't understand what you mean here—is this a recommendation against regular use of letter-spacing? – Sam Mason Nov 12 '14 at 13:12
13

As of March 2015, to my knowledge there's no reason not to use LetterSpace=... provided by fontspec. However, there's a couple of reasons to prefer the functional equivalent provided by microtype (\textls and \lsstyle).

  • microtype's feature has been around for some 10 years now; it's tried and tested, and its benefits and limitations seem well documented.

  • whereas fontspec won't work outside the realm of Lua and XeTeX, microtype is compatible with pdfTeX as well, making it a lot easier to transfer a document between those two realms if necessary.

  • microtype provides \textls{...} and \lsstyle, which are modelled after the classic text style commands. A lot more intuitive and easier to use than the fontspec routines. Note the optional argument available with \textls[...]{...}, which you can use for local ad-hoc specification of the tracking amount.

  • in addition to \textls, microtype provides \textls* for use at the beginning of a line. It'll cancel the preceding, unnecessary whitespace in front of the first letter that \textls would produce in that situation.

  • the Renderer=Basic problem that you mention seems to have been fixed.

I've been using both fontspec and microtype in pretty much all of my documents for a couple of years now, and haven't noticed any mutual intolerances. \lsstyle is a regular attribute in my sectioning styles when using all-caps or small caps.

PS, re: stealing sheep

@egreg, at the time when the doctrine to stop letterspacing lowercase text was issued, there were good paedagogical reasons for it, and its effects -- the almost exclusive use of italics instead of letterspacing for emphasis purposes -- were indeed a step forward in terms of text esthetics. It remains sensible to teach people to stop stealing sheep, but then again, rules are there to be broken (by those who've mastered them). »Letterspaced lowercase is a particularly hard-to-master way of emphasis in which only master typographers should get involved. Its effects will vary depending on its typographic surroundings. In a ›thick‹ surrounding, it'll act as more active emphasis that draws attention to itself in a somewhat shady way. In a ›light‹ context though, such as in bibliographies with lots of abbreviations, it'll lose its emphasising effects, which allows it to be used for purposes of differentiation instead.« (Willberg/Forssmann 1997: ›Lesetypgraphie‹)

Plus, there's still situations where letterspaced lowercase simply has to be used. Blackletter type, for example, has seen somewhat of a revival, and in that context letterspacing is a common and perfectly legitimate way of emphasising text. Then there's considerations of historical ›correctness‹, such as when a typographic project follows a specific model that happens to include letterspaced lowercase.

One may also note that minute adjustments of the space between letters of a fount, uniformly throughout the entire text (›tracking‹), are a common way to (1) deal with type of inferior quality, such as when we have to use a fount that's simply badly spaced (or spaced with other uses in mind than your own), as in too loosely or too tightly, and to (2) adjust type for certain point sizes above or below reading size. It's good practice, among those with the right tools and proper know-how, to increase tracking for very small text, to improve readability e.g. in footnotes, and to decrease it in a larger, e.g. titling environment for a tighter appearance.

  • I’ve never seen LetterSpace=... leave unnecessary whitespace at the beginning of a line; it seems to be a point in favor of fontspec that you don’t have to think about using a starred version or not. – Thérèse Mar 16 '15 at 23:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.