Does the mainfont option support lists of fonts?
#11268
Unanswered
jimjam-slam
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
I don't think LaTeX has a Note that |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The HTML reference describes the
mainfontoption as:You could either read "sets the CSS
font-familyas "set a single font family" or "set thefont-familyoption... I had read it as the latter and assumed that it would accept any value thatfont-familycan take in CSS.However, if I set
mainfontto a comma-separated list of fonts, it appears to duplicate any double-quotes used in any of the names. Creating a website withquarto createand then settingformat.html.mainfontto 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
mainfontoption 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