-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it very easy to quickly set font-family #21
Comments
gadenbuie
changed the title
Make it very easy to quickly setting font-family
Make it very easy to quickly set font-family
Sep 12, 2024
gadenbuie
added a commit
that referenced
this issue
Sep 20, 2024
Treats `base: Open Sans` and `base.family: Open Sans` as "get from Google Fonts" For #21
typography:
fonts:
- family: Open Sans
source: system
base: Open Sans
headings: Roboto Slab
monospace: Fira Code
|
cscheid
added a commit
to quarto-dev/quarto-cli
that referenced
this issue
Oct 10, 2024
Quarto now uses the following schemas: (other related schemas were similarly changed.) |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As proposed by @cpsievert, we could make it very easy to set font families by letting
typography.{base,headings,monospace}
take a string that we'd map to thefamily
property.For someone who just wants to pick fonts quickly even this is still a bit of boilerplate. In pkgdown and rmarkdown, we've used a syntax like this to declare in-place Google fonts:
Instead of this, I wonder, if we're comfortable making Google Fonts the default, we could automatically add Google Font declarations for font families that don't have a counterpart in
typography.fonts
and are a single font family name.With this approach, in the following example we'd use Roboto Slab and Fira Code from Google Fonts but rely on locally-installed Open Sans (i.e. opting out of Google Fonts).
The text was updated successfully, but these errors were encountered: