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

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

Problem with word spacing in utopia font

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.

MWE:
\documentclass{article} \usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}\usepackage[adobe-utopia]{mathdesign}% Optionally:\usepackage{microtype} \begin{document} \section{Applications of Temperature}Applications of Temperature\end{document}

Stefan Kottwitz
Posts: 8541
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hello!

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.

Stefan

stupidus
Posts: 3
Joined: Mon Jan 18, 2016 12:26 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.
\SetTracking[ spacing = {100,,}]{encoding = *}{0}%...Applications \textls*{of Temperature}

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

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