Page MenuHomePhabricator

Punjabi letters in SVG files have unnecessary spacing in their corresponding PNG thumbnails
Closed, DuplicatePublic


There is unnecessary spacing within different letters while rendering in different sizes:

Current wrong output -

(For example the word - ਸਧਾਰਨ is rendered as ਸਧਾਰ ਨ)

Expected output -

Duplicate of T36947 & T142908
Reported Upstream: ; fixed in librsvg 2.51.2 and 2.50.6

Event Timeline

Jayprakash12345 added a subscriber: Amire80.
Jayprakash12345 subscribed.

In my System, It is seeing as ਸ ਧਾ ਰ ਨ

FireShot Capture 36 - File_Types of Sentences-pa.svg - Wikim_ - https___commons.wikimedia.org_wiki.png (194×280 px, 14 KB)

I found that there is no problem in full size rendering.

This seems to be about the thumbnails in PNG format and not about the original file in SVG format itself. For future reference, please follow - thanks!

Aklapper renamed this task from Punjabi letters having unnecessary spacing while rendering SVGs in Wikimedia Commons to Punjabi letters in SVG files have unnecessary spacing in their corresponding PNG thumbnails.Sep 29 2018, 4:10 PM
Aklapper updated the task description. (Show Details)

@satdeep_gill: Please only set a task assignee if the assignee has explicitly agreed before. (Not sure in this case; maybe the field was unintentionally reset.) Thanks!

ਸੰਯੁਕਤ ਵਾਕ

The same is happening to any text rendering of librsvg, because librsvg is going more worse and more worse instead of better: T36947. So I do mean this report is a dupe.

because librsvg is going more worse and more worse instead of better

@Perhelion: If you find specific issues, please file bug reports. While frustration is sometimes understandable, generalized statements don't help anyone.

We should test this when we upgrade librsvg

imho a duplicate of T36947, which is not a subtask of Updating librsvg, but maybe a subtask of reevaluating svg-render T40010

I tested

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="" width="800" height="200" viewBox="0 0 5 1">
 <text x="0" y="1" font-family="DejaVu Sans" font-size="1">ਸਧਾਰਨ ਵਾਕ</text>
svglibrsvg2.40 (WikiMedia)librsvg 2.50 (Fedora 34)librsvg 2.51 (Fedora 34)resvg (Fedora 34)inkscape (Fedora 34)batik (Fedora 34)
T205776.svg.png (200×800 px, 6 KB)
Types_of_Sentencespa___inkpCSOtusCvSO___librsvg.png (200×800 px, 7 KB)
Types_of_Sentencespa___inkpCSOtusCvSO___librsvg251.png (200×800 px, 6 KB)
Types_of_Sentencespa___inkpCSOtusCvSO___rendersvg.png (200×800 px, 10 KB)
Types_of_Sentencespa___inkpCSOtusCvSO___Inkscape.png (200×800 px, 8 KB)
Types_of_Sentencespa___inkpCSOtusCvSO___batik.png (200×800 px, 8 KB)

Bildschirmfoto von 2021-05-09 16-42-06.png (650×1 px, 52 KB)

JoKalliauer added a project: Upstream.
JoKalliauer updated the task description. (Show Details)
JoKalliauer moved this task from Backlog to Reported Upstream on the Upstream board.

"Incorrect text spacing when transform is not 1:1" will be fixed in librsvg 2.51.2 (and librsvg 2.50.6, once backported) according to (thanks to JoKalliauer for investigation and upstreaming).