-
Notifications
You must be signed in to change notification settings - Fork 352
_brand.yml
: typography: fonts: source: file
option fails
#12267
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
Labels
documentation
Doc improvements & quarto-web
yaml-validation
Issues with YAML validation and autocompletion in quarto
Comments
typography:
> fonts:
> source: file
option failstypography: fonts: source: file
option fails
typography: fonts: source: file
option fails_brand.yml
: typography: fonts: source: file
option fails
What if you use? typography:
fonts:
- family: Amplitude-Light
source: file
files:
- path: Amplitude-Light.ttf Note that Quarto mentions the complete documentation several times and is not exhaustive about brand.yml which has its own documentation. |
Yes, indeed this did the trick - thanks! Was aware of the brand.yml documentation, actually, but clearly hadn't dug deep enough there. |
Maybe we could add that files expects an array of "path" in Quarto reference page. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Doc improvements & quarto-web
yaml-validation
Issues with YAML validation and autocompletion in quarto
Bug description
The
source: file
option does not work for me as expected when trying to specify a customfont
in abrand.yml
. It insists thesource
field's value must begoogle
(but I do use it successfully withsource: system
, for example).Steps to reproduce
Copy follwing files to same test directory
_brand.yml
_quarto.yml
my.qmd
Amplitude-Light.ttf
(not included here, but could be replaced by other suitable font file)
Compile
Actual behavior
I am getting the following error. Notice in particular the claim that
Field "source" has value file, which must instead be 'google'
, even though I usesource: system
with system fonts quite successfully on the same machine.Expected behavior
Successful compilation with local font file.
Your environment
Quarto check output
The text was updated successfully, but these errors were encountered: