Interesting. This works for me! I don't know why (I am relatively new to
TeX/LaTeX, but it works. It finds the small caps in both the Baskerville
and Hoefler Text fonts that ship with MacOS.
What I had been doing is using :
\scshape{Some text here.}
I also tried using \scshapeand that also failed. (As I wrote earlier,
both \scshapeand \textscwork fine with Scotch Modern, so the issue only
seems to affect certain fonts.) For the time being I will just use
\fontspecas you did below.
For reference, the error message I get is:
LaTeX Font Warning: Font shape `TU/HoeflerText(0)/m/sc' undefined
(Font) using `TU/HoeflerText(0)/m/n' instead on input line
11. [1] (./mfbb.aux) LaTeX Font Warning: Some font shapes were not
available, defaults substituted.
Anyhow, thanks for the workaround!
On 2023-10-24 13:44, Lorna Evans wrote:
I downloaded Hoefler Text from here:
https://fontsgeek.com/fonts/Hoefler-Text-Regular#google_vignette
My minimal example:
%!TEX TS-program = xelatex
\documentclass[12pt]{memoir}
\usepackage{fontspec}
\setmainfont[Renderer=OpenType]{Hoefler Text}
\begin{document}
Now is the time for all good men to come to the aid of their country.
The quick brown fox jumped over the lazy black dog.
\fontspec{Hoefler Text}[
Renderer=OpenType,
RawFeature={+smcp}]
Now is the time for all good men to come to the aid of their country.
The quick brown fox jumped over the lazy black dog.
\end{document}
This produced
I don't know if the screenshot will come through on this list. But it
seems to work. I'm on Windows though.
Lorna
On 10/23/2023 8:40 PM, David Barts via XeTeX wrote:
Posted this on the /r/tex subreddit and it was recommended I post it
here:
When I run XeLaTeX from TeX Live 2023 on my Mac, it does not allow me
to access the small caps (smcp feature) in the Baskerville or Hoefler
Text fonts. I know these fonts contain small caps, because I can
access the smcp feature in them when using Libre Office. I know Libre
Office isn’t simply faking it and using a smaller point size to get
small caps because a) that’s not how the text appears (the small caps
sure look like proper small caps to me), b) it doesn’t do this for
all fonts.
It’s not all Open Type fonts that XeTeX has problems with, either. It
can use the small caps in Shinntype’s Scotch Modern just fine.
I’ve done some web searches about this and so far came up dry. Was
wondering if anyone else had noticed it or has a workaround.
--
David Barts /n5...@me.com
He who has nothing to die for has nothing to live for.
-- Moroccan proverb
--
David Barts /n5...@me.com
He who has nothing to die for has nothing to live for.
-- Moroccan proverb