linebender / linebender/resvg

Incorrect dx/dy handling for RTL scripts

Open
#583 8 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

basically the title, the font is rendering ok but the positioning is completely off, here is how it looks when I open the svg in chrome
![image](https://user-images.githubusercontent.com/46644190/220127456-dc238303-16ac-4c27-8966-2019e7e823af.png)

and this is how it renders with resvg
![image](https://user-images.githubusercontent.com/46644190/220127510-c0b07084-a654-42a5-be84-95e37eeb0c42.png)
the relevant svg code is this
```



מושי & חני

,

גרינבוים



```

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

No source file, test, or entry point is named. Reproduce the provided SVG in resvg and Chrome, then trace the text and tspan handling for dx/dy in RTL scripts; done means the Hebrew spans receive positioning consistent with Chrome.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.