Does the mainfont
option support lists of fonts?
#11268
Unanswered
jimjam-slam
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't think LaTeX has a Note that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The HTML reference describes the
mainfont
option as:You could either read "sets the CSS
font-family
as "set a single font family" or "set thefont-family
option... I had read it as the latter and assumed that it would accept any value thatfont-family
can take in CSS.However, if I set
mainfont
to a comma-separated list of fonts, it appears to duplicate any double-quotes used in any of the names. Creating a website withquarto create
and then settingformat.html.mainfont
to any of the following fails:If it was intended that this option only support one font, that's okay! I wanted to clarify because we've added some font YAML options to Closeread, and we noticed that the same YAML string for our font option and the
mainfont
option lead to different CSS custom property values being emitted.Options going in:
Property values coming out:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions