1

I'm writing an article with Adobe Caslon Pro and Xelatex and I found that this mark punctuation ’, an apostrophe, which is ordinary used in French, has not the required interval when used, for instance, in the following words : "L'écriture". This issue is probably similar to this one described here : [https://tex.stackexchange.com/questions/218415/french-spacing-with-xelatex-and-minion-pro][1] In this post, a solution consists in doing something I can't replicate. Could anyone help me to do that? This is the MWE:

    \documentclass[12pt]{article}
\usepackage[french]{babel}
\usepackage{filecontents,fontspec,microtype}
\begin{filecontents*}{minion.fea}
languagesystem DFLT dflt;
languagesystem latn dflt;

feature kern {
  pos \quoteright \a 10;
  pos \quoteright \eacute 10;
  pos \quoteright \o 10;
} kern;
\end{filecontents*}
\setmainfont{Minion Pro}[
  FeatureFile={minion.fea}]
\frenchspacing
\begin{document}
l’étranger

d’accord

d’ores et déjà
\end{document}
4
  • It seems Libre Caslon (open type name Libre Caslon Text) has a better spacing for the apostrophe.
    – Bernard
    Jun 3 '21 at 18:38
  • I already tested it. But it is not the same finish at all.
    – domi
    Jun 3 '21 at 19:17
  • 1
    I agree that Libre Caslon isn’t as attractive. But have you tried the solution by jch in the linked question about Minion? This is a problem with Adobe fonts generally, and the same approaches should apply.
    – Thérèse
    Jun 3 '21 at 20:12
  • I've just edited my question in this way.
    – domi
    Jun 3 '21 at 20:40
2

I don’t have Caslon, but this is a problem with many Adobe fonts, so I’ll illustrate an approach with Minion. Updating French spacing with xelatex and Minion Pro in view of How to adjust font features in LuaTeX?, we get something like this (iff you’re willing to change your compiler to luatex):

\documentclass[12pt]{article}
\usepackage[french]{babel}
\usepackage{fontspec,microtype}
\directlua{fonts.handlers.otf.addfeature
  {
    name = "kern",
    type = "kern",
    data = {
      ["quoteright"] = { ["a"] = 150 , ["eacute"] = 150 , ["o"] = 150 },
    },
  }
}
\setmainfont{Minion Pro}
\frenchspacing
\begin{document}
l’étranger

d’accord

d’ores et déjà
\end{document}

output

Adjust 150 to taste.

14
  • Thanks! It works very well, but it means that I have to adjust an entire book on a case-by-case basis! For instance, these are my adjustments: ["quoteright"] = { ["a"] = 50 , ["eacute"] = 150 , ["o"] = 90 , ["h"] = 90 , ["e"] = 90 , ["u"] = 50}
    – domi
    Jun 3 '21 at 21:08
  • Yes, it’s painful — a sample of what type designers must go through when they kern a whole font family.
    – Thérèse
    Jun 3 '21 at 23:07
  • I can't manage to adjust ["ecirc"]. The space does not change. Any idea?
    – domi
    Jun 5 '21 at 17:36
  • 1
    Did you mean ["ecircumflex"]? Fontforge is useful for finding glyph names (and for many other things).
    – Thérèse
    Jun 5 '21 at 17:52
  • I'd like to add a space before "?". How to do that?
    – domi
    Jun 20 '21 at 17: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.