quarto-dev / quarto-dev/quarto-cli

How to specify other SVG conversion tools (Inkscape) into the chain

Open
#1,144 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement figures
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1140

Originally posted by fuhrmanator June 13, 2022
I'm using SVG a lot in my markdown, and it renders nicely (most of the time) in PDF by way of rsvg-convert part of the LaTeX chain:

(rsvg-convert.exe:2516): Pango-WARNING **: couldn't load font "Helvetica Not-Rotated 13.640625", falling back to "Sans Not-Rotated 13.640625", expect ugly output.

I'd like to use Inkscape instead, as it does some things better, especially with fonts I've installed in Windows.

Is there a way to specify that SVG conversions to PDF should be done using Inkscape?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion and the existing SVG-to-PDF path using rsvg-convert in the LaTeX chain. Determine how Inkscape should be selected as the conversion tool, then verify that SVG conversion to PDF uses it and preserves the requested font behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, markdown
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.