linebender / linebender/resvg

Fallback to a random font when no specified families are found

Open
#606 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
4.1k
Forks
348
Avg merge
1d 14h
Merged PRs (30d)
3

Description

Feel free to close this one if duplicate. On [current master](https://github.com/RazrFalcon/resvg/commit/2c5d90990411535c1afddb62b8be85076db05277), I can't get text to display at all, but works fine in a browser.

I'm running:

```
cargo run --example minimal input.svg output.png
```

Attached both input & output of what I'm seeing.
![input](https://user-images.githubusercontent.com/6415435/229659338-ba21ba21-b654-4b20-b3f8-627a128e02d1.svg)
![output](https://user-images.githubusercontent.com/6415435/229659429-9044debe-6498-4e51-8fa4-d4f96bc1670a.png)

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the report with `cargo run --example minimal input.svg output.png`, comparing the attached input and output. Trace the font-family fallback behavior involved in rendering the SVG text; done means text renders when the specified families cannot be found, using a fallback font instead of disappearing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.