Skip to content

LaTeX crash when using custom font #3794

@kjohnsen

Description

@kjohnsen

Bug description

My render fails (at the XeLaTeX part?) whenever I use a custom font. I'm on Ubuntu 18.04 WSL on Windows 11.

test.qmd:

---
format: 
  pdf: 
    mainfont: Arial
---

# Hello there!

This is a test.

So, quarto render test.qmd --to pdf fails, unless I stop trying to specify the font.

  This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  Fontconfig warning: FcPattern object weight does not accept value [50 200)
  
updating tlmgr

updating existing packages

compilation failed- error
see test.log for more information.

By the way, I always see that Fontconfig weight warning, whether I try to set the font or not. And I'm not a LaTeX expert, but I don't see anything useful in the log.

Quarto check:

[✓] Checking Quarto installation......OK
      Version: 1.2.280
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.8.8 (Conda)
      Path: /home/kyle/anaconda3/bin/python
      Jupyter: 4.7.1
      Kernels: conda-env-test2-py, ..., julia-1.8

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

I also just upgraded TinyTex to 2022.12.12.

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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglatexLaTeX engines related libraries and technologiesneeds-reproIssues that are blocked until reporter provides an adequate reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions