### Bug description

System: Debian 11

RStudio: RStudio 2022.12.0+353 "Elsbeth Geranium". All packages up to date, using default quarto (could not check version)

In quarto book, using text commands inside equations, such as \text{} or \mathrm{}, produces a fatal error when a custom main font is used. Below, a code example:

```
\begin{align*}
a^n &=  \underbrace{a \cdot a \cdot a \cdot \ldots}_{n \text{ times}} \\ \\
a^n &= p
\end{align*}
```
In the yml file, the main font is set to EB Garamond:

```
pdf:
    mainfont: EB Garamond
```

This will generate the following error:

```
  This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
  xdvipdfmx:fatal: Cannot proceed without the font: /usr/share/fonts/woff/ebgaramond/EBGaramond08-Regular.woff
  
  No output PDF file written.
```

The removal of the \text command in the equation outputs a pdf file with no error and correct custom font.



### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2023-01-27T16:14:11Z
vfacta
bug
v1.4
open
Custom font and Latex 's \text{} error
https://github.com/quarto-dev/quarto-cli/issues/4125