Page MenuHomePhabricator

Discrepancies in SVG Translate's pngs and Commons' versions in character and word spacings
Open, Stalled, LowPublic

Description

Seemingly SVG Translate's PNGs differ from Commons' version slightly. Here's an example:
Commons versus SVG Translate

Note the differences in character and word spacings along the X axis and the legend.

What's causing this and can we fix it?

SVG TranslateCommons

Event Timeline

Niharika created this task.Jan 8 2019, 2:46 AM
Niharika triaged this task as Normal priority.
Restricted Application added a project: Community-Tech. · View Herald TranscriptJan 8 2019, 2:46 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Samwilson Flagging this for you. I didn't find any other example with substantive differences in my brief search but there will probably be some more. Can we figure out what's causing the differences?

Aklapper renamed this task from Discrepancies in SVG Translate's pngs and Commons' versions to Discrepancies in SVG Translate's pngs and Commons' versions in character and word spacings.Jan 8 2019, 4:46 AM

It gets worse than just font problems! I've just found one where our rendering makes the Malleus label in Anatomy_of_the_Human_Ear_en.svg head out on a weird angle:

This is only with custom transations, not with unmodified images, so seems likely to be due to our SVG manipulating and not with rsvg.

Actually, sorry, this is probably a completely separate bug! :) But I'll investigate further before opening another ticket.

Samwilson updated the task description. (Show Details)Jan 9 2019, 6:42 PM
aezell added a subscriber: aezell.Jan 9 2019, 6:47 PM

@Samwilson That does seem unrelated. It is interesting because we largely don't intentionally mess with coordinates or any kind of positioning.

Here's a screenshot of what I see on the two sites:

SVG TranslateCommons

Notice the legend and X-axis character and word spacing differences.

Niharika changed the task status from Open to Stalled.Jan 10 2019, 2:29 AM
Niharika removed a project: Community-Tech.

It seems like Sam and I don't see the same image on Commons and hence the differences. Let's ignore this ticket until we see more substantive differences.

MaxSem added a subscriber: MaxSem.Jan 10 2019, 2:42 AM

The font difference is due to packages: for production to render the SVGs, it has tons of additional fonts installed, unlike our container.

The font difference is due to packages: for production to render the SVGs, it has tons of additional fonts installed, unlike our container.

Can we install those on our container as well? They might especially be useful for non-latin languages.

I'm still not sure why Niharika and I are seeing different things on the file page on Commons. Can anyone else confirm that when they look at this, the kerning of the word 'Total' in the chart legend is incorrect? This is what I see:

It is incorrect for me. I see it the same as yours.

Niharika lowered the priority of this task from Normal to Low.Jan 23 2019, 1:48 AM