0

After installing D-Din as *.otf from here (fc-list shows it and the exact naming is used below), I have added the following to my rmarkdown/bookdown header:

output:
  bookdown::pdf_document2:
  ...
  latex_engine: lualatex
...
mainfont: D-DIN:style=Regular
sansfont: D-DIN:style=Regular

This compiles nicely and the font gets used but I use all formatting like bold and italic, as well as glyph-magic like -- to en-dash etc. Not surprising, maybe, as I explicitly ask for the Regular version ... Can anyone point out how I may instruct tinytex/lualatex/pandoc to make use of the full weight etc. spectrum for D-Din available on the system?

Thank you for any hints.

balin
  • 1,554
  • 1
  • 12
  • 26
  • Thanks. Fixed the spelling mistake. – balin Jan 30 '20 at 13:25
  • maybe you need to ask on https://tex.stackexchange.com... note also that lualatex, xelatex and the default pdflatex (of which tinytex is a subset AFAIK) each have very different font handlings... see also https://pandoc.org/MANUAL.html#creating-a-pdf for the basics – mb21 Feb 01 '20 at 10:15

0 Answers0