Skip to content

All brand.typography.fonts should be made available in websites #11929

@gadenbuie

Description

@gadenbuie

Bug description

When brand.typography.fonts includes additional fonts that aren't used in brand.typography.{base,headings,monospace,...} these additional fonts should still be loaded and made available in websites.

Steps to reproduce

---
title: Load all brand fonts

brand:
  typography:
    fonts:
      - family: Barrio
        source: google
      - family: Roboto
        source: google
    base: Roboto
    # headings: Barrio
---

## Base font

{{< lipsum 1 >}}

## Barrio font

::: {style="font-family: Barrio"}
{{< lipsum 1 >}}
:::

Expected behavior

The second paragraph should be in Barrio font (very distinctive), without Barrio having to appear in any of the family keys in brand.typography.

Image

Actual behavior

The Barrio font isn't loaded and isn't available in the website.

Image

If brand.typography.headings: Barrio, then the Barrio font is loaded, which should not be necessary.

Your environment

  • OS: MacOS Sequoia 15.2

Quarto check output

Quarto 1.7.13
[✓] Checking environment information...
      Quarto cache location: /Users/garrick/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.13
      Path: /Users/garrick/.local/share/qvm/versions/v1.7.13/bin

[✓] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /Users/garrick/Library/TinyTeX/bin/universal-darwin
      Version: 2022

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
      Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.12.2
      Path: /Users/garrick/work/posit-dev/brand-yml/.venv/bin/python
      Jupyter: 5.7.2
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.4.2
      Path: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources
      LibPaths:
        - /Users/garrick/Library/R/arm64/4.4/library
        - /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
      knitr: 1.49
      rmarkdown: 2.29

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

backportbrand`_brand.yml`bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions