Thanks for the comments, Alex. Replies interspersed.
On 2/20/26 14:42, Alex Jordan wrote:
> Sometimes you have the font you want for the main body text, but it does not
> come with a monospace variant, italic variant, etc. So I think there should be a
> way to declare these things too.
Templates are currently organized so that with extra XSL, and an understanding
of fontspec you can do this now.
Most "mainstream" OTF fonts are organized with italic, bold, and bolditalic
variants with standard names. Small caps can be faked. There are options to
specify nonstandard names (which is a different problem than ouright availability).
> This is all tied very closely to using xelatex
> and the fontspec package. Is it worth considering an embrace of that, and
> surveying fontspec for more features to use? Like (for example) all of the
> arguments that go to \setmainfont, \setsansfont, etc could be legal attributes
> in the publisher file, somewhere down in the latex element.
I do not plan to make this very complicated, and I certainly do not want to
document and maintain a bunch of features of the fontspec package. We do this
with the LaTeX geometry package, the value in the publisher file is just the
argument to "\geometry{}". I plan to see do similarly here - publisher file has
two strings that go directly into \setmainfont{}[], and similarly for the math
font and the monospace font. I consider this an embrace - read the fonspec docs
and do whatever you like.
> Somewhere, people should be educated about font licensing and whether or not the
> font ends up included inside the PDF. With some of the publishers who would
> actually do the printing, they might reject a job because of either of these
> concerns. IIRC, for inserting a font into the PDF, I had to run xelatex with
> some arcane argument and/or use Acrobat.
Yes! Are you volunteering? There might even be a good place righr now, since
there is a lot of discussion of fonts in The Guide already (which I will need to
review as part of this).
Rob