LaTeX forum ⇒ Fonts & Character SetsProblem with word spacing in utopia font

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Posts: 3
Joined: Mon Jan 18, 2016 12:26 pm

Problem with word spacing in utopia font

Postby stupidus » Wed Sep 06, 2017 3:44 pm

I am using the adobe-utopia font via the mathdesign package for my PhD thesis. The font looks overall very nice, so I would like to keep it. However, there is a small problem with the word spacing if a word that ends with an "f" is followed by a word that starts with a capital "T". In that case the spacing between these two words looks too small. In a flowing text, but also in section headings, this looks a bit disturbing. The microtype package with the default settings does not really improve this.

Is there a way to somehow modify the font, or some setting to use in order to enlarge the word spacing only for this special case?
Of course, I could manually add something like \hspace{0.3em} at the appropriate places, but this is sort of an ugly workaround, and I am not sure if it would still look good in a justified text.

  1. \documentclass{article}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[T1]{fontenc}
  5. \usepackage[adobe-utopia]{mathdesign}
  6. % Optionally:
  7. \usepackage{microtype}
  9. \begin{document}
  11. \section{Applications of Temperature}
  12. Applications of Temperature
  13. \end{document}

User avatar
Stefan Kottwitz
Site Admin
Posts: 8705
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany

Postby Stefan Kottwitz » Wed Sep 06, 2017 11:17 pm


You could use the features of microtype or the letterspace package. Take a look at the microtype manual, page 23 and 24 "Letterspacing revisited", command \SetTracking. I just cannot test myself, since I'm traveling right now.

Site admin

Posts: 3
Joined: Mon Jan 18, 2016 12:26 pm

Postby stupidus » Thu Sep 07, 2017 2:48 pm

Thank you!
I looked into the SetTracking command, but I could not find how to set it up to only affect the "f T" letter combination. So, I would still need to manually set \textls in every case. Also I could not find, how to make it only affect the word spacing in a reliable way. The following does not really work.
  1. \SetTracking[ spacing = {100,,}]{encoding = *}{0}
  2. %...
  3. Applications \textls*{of Temperature}

The best result I got so far by leaving \SetTracking at the default values, and use the following:
  1. Applications o\textls*{f T}emperature

It looks really ugly in the .tex file, but it looks quite ok in the pdf.

Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 1 guest