The background image generated by make deploy
for our OSX disk image has bad kerning at least for the OSX version I tested.
Software specs:
0ProductName: Mac OS X
1ProductVersion: 10.14.6
2BuildVersion: 18G87
The background image generated by make deploy
for our OSX disk image has bad kerning at least for the OSX version I tested.
Software specs:
0ProductName: Mac OS X
1ProductVersion: 10.14.6
2BuildVersion: 18G87
Is this with gitian or a native build?
Native build, perhaps we don’t care that much about the disk image for native builds?
The background.svg
image uses a font called Tuffy
(I don’t know why). This is probably suboptimal.
I guess @dongcarl’s rsvg-convert has issues with either the font or with the general bitmapification of text.
What happens if you convert manually?
rsvg-convert contrib/macdeploy/background.svg -f png -d 36 -p 36 -o test.png
Font Book
on my system there doesn’t seem to be a font named “Tuffy”, which is probably the problem. Perhaps we could switch to something else?
rsvg-convert
as @jonasschnelli and I discovered. This regression was introduced somewhere between rsvg-convert
2.40.16 and 2.46.0.
width="1000pt" height="640pt"
part in the <svg>
tag (changing from pt
to px
makes the kerning looks good, but unsure about the output image size).
Looks like the @2x image is fine (retina/HiDPI). Can you confirm @dongcarl ?
Tested this issue using a retina display Macbook Pro running the same software specs, no kerning on my side which suggests the @2x image works as intended.
I also get the kerning if i convert manually using
rsvg-convert contrib/macdeploy/background.svg -f png -d 36 -p 36 -o test.png
but not if i convert @2x manually using
rsvg-convert contrib/macdeploy/background.svg -f png -d 72 -p 72 -o test.png
Software specs:
0ProductName: macOS Mojave
1ProductVersion: 10.14.6
2BuildVersion: 18G87
Looks like its related to the
width="1000pt" height="640pt"
part in the<svg>
tag (changing frompt
topx
makes the kerning looks good, but unsure about the output image size). @jonasschnelli I’ve been playing around with this issue and as you mentioned changing frompt
topx
seems to solve the kerning issue.
However when using px
instead of pt
, the png outputs from the rsvg-convert
seem to create the exact same file (regardless of the change in dpi) and therefor having the two different image output files (background.tiff.png
and background.tiff@2x.png
) would be pointless.
A potential solution would be to have two different background.svg
files for each image resolution, however a solution that keeps it confined to one background.svg
would seem more appropriate.
I’m willing to take on fixing this issue if nobody else already has, not sure of the best solution yet and your thoughts on this would be appreciated.
Also I’m fairly new around here so apologies if i haven’t followed correct procedure or have put this in the wrong place (working my way through the contributing guide)
I’ve looked into this issue some more and provided upstream with a minimal reproducer: https://gitlab.gnome.org/GNOME/librsvg/issues/520
It appears to be an issue that only occurs on OSX.