Project

General

Profile

Bug #10701

Text Rendering Issues with Watemark

Added by Joe Giampaoli over 3 years ago. Updated 3 months ago.

Status:
Closed: upstream
Priority:
Low
Assignee:
-
Category:
Darkroom
Start date:
11/07/2015
Due date:
% Done:

0%

Affected Version:
2.0rc1
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

Really love the simple text watermark option. I am having an issue where some text fonts overlap with others. Attaching screenshot with a clearly readable watermark that should say "JOE GIAMPAOLI" and you can see that the P & A in my last name are overlapping. This doesn't happen with all fonts but it does with many. I tried adding an extra space but the space is to obvious. I tried the very same TTF in Inkscape and the font renders as it should there.

Screenshot - 11072015 - 07_28_02 AM.png (560 KB) Joe Giampaoli, 11/07/2015 03:34 PM

Screenshot - 11092015 - 05_39_45 AM.png (555 KB) Joe Giampaoli, 11/09/2015 01:43 PM

DRAGGLET.TTF (61 KB) Joe Giampaoli, 11/09/2015 08:07 PM

simple-text.svg (325 Bytes) Tobias Ellinghaus, 11/10/2015 12:51 AM

rsvg-view-3-100_.png (10.2 KB) Joe Giampaoli, 11/10/2015 03:01 AM

rsvg-view-3-800_.png (17.5 KB) Joe Giampaoli, 11/10/2015 03:01 AM

Screenshot - 11092015 - 06_48_37 PM.png (626 KB) Joe Giampaoli, 11/10/2015 03:02 AM

Screenshot - 11092015 - 07_06_09 PM.png (288 KB) Joe Giampaoli, 11/10/2015 03:13 AM

Screenshot - 11092015 - 07_06_25 PM.png (638 KB) Joe Giampaoli, 11/10/2015 03:13 AM

History

#1 Updated by Tobias Ellinghaus over 3 years ago

  • Status changed from New to Incomplete
  • % Done changed from 0 to 20

What does it look like when viewed with display or some other image viewer that uses rsvg? And what if you put your name into the SVG directly, without using the variable? Does it then render correctly? And last but not least: could it just be related to the "PA" letter pair?

#2 Updated by Joe Giampaoli over 3 years ago

Tobias Ellinghaus wrote:

What does it look like when viewed with display or some other image viewer that uses rsvg? And what if you put your name into the SVG directly, without using the variable? Does it then render correctly? And last but not least: could it just be related to the "PA" letter pair?

I just tested making the watermark in Inkscape and as I said it renders fine there. Also the saved SVG renders well in DT, I fooled around with scaling factors and no issues. Probably it is something with the P & A together but this doesn't happen at all in Inkscape with any font, in DT this happens with many fonts.

Here's a screenshot with same text but made and saved with Inkscape

Thanks!

#3 Updated by Tobias Ellinghaus over 3 years ago

I tried it locally and for me it worked, but I DID see some problems with kerning and general text rendering that are probably bugs in librsvg. Could you please attach your SVG and maybe tell me about a free font that has problems? I don't want to buy Engraver's Gothic.

Edit: Never mind the part about the used SVG, it's the one we ship. I'd still like to know about a font I should try.

#4 Updated by Joe Giampaoli over 3 years ago

Tobias Ellinghaus wrote:

I tried it locally and for me it worked, but I DID see some problems with kerning and general text rendering that are probably bugs in librsvg. Could you please attach your SVG and maybe tell me about a free font that has problems? I don't want to buy Engraver's Gothic.

Edit: Never mind the part about the used SVG, it's the one we ship. I'd still like to know about a font I should try.

That's strange, I never paid for any of my fonts, probably it was free back when I downloaded it, but here's a font that really does it with all letters, I noticed that the smaller the scale the better it renders. I also noticed that even on some fonts that appear to render properly, there's still a few letters that have a bit more separation than others, is this what you also saw?

Here's the link to the free font, almost all letters seem to overlap at 100%

I'm still including the font file I have locally just in case you want to test with that very same one...

http://www.dafont.com/draggletail.font

Thanks!

#5 Updated by Tobias Ellinghaus over 3 years ago

That one looks fine for me. What version of librsvg do you have installed? I have 2.40.11.

#6 Updated by Joe Giampaoli over 3 years ago

Tobias Ellinghaus wrote:

That one looks fine for me. What version of librsvg do you have installed? I have 2.40.11.

OK! I have librsvg 2.40.5 from Debian repos. If I try to remove it to self compile a newer version it will remove like a hundred dependencies. I'll see if I can compile and install newer version with stow to another location and then recompile DT against it and test when I have more time, but I'm pretty sure it could be that...

Anyway thanks!

#7 Updated by Tobias Ellinghaus over 3 years ago

Of course it could also be the version of one of the text rendering related libraries that librsvg uses, like libharfbuzz, libpango, libpangocairo, libcairo, libfontconfig, libpangoft2, libfreetype. Or something else. Hard to tell. :-(

Could you please try the attached SVG file, both in darktable as well as rsvg-view-3 (from librsvg2-bin)?

#8 Updated by Joe Giampaoli over 3 years ago

Tobias Ellinghaus wrote:

Of course it could also be the version of one of the text rendering related libraries that librsvg uses, like libharfbuzz, libpango, libpangocairo, libcairo, libfontconfig, libpangoft2, libfreetype. Or something else. Hard to tell. :-(

Could you please try the attached SVG file, both in darktable as well as rsvg-view-3 (from librsvg2-bin)?

Ah! That's right!

Well just tested that SVG and yes, similar issues...

With rsvg-view-3 at 100% looks fine, obviously very small since you did it in a very small size, but it's spaced properly. As I scale up then it starts rendering wrong.

In Darktable strangely it renders much bigger but completely garbled.

In Inkscape all good, even if I change font size or scale the object directly.

Now I must say I had similar issue with my personalized watermark created in Inkscape. When I downscaled it it didn't look right, but this happened when viewing image to fit window in darkroom mode. If I view the photo at 100% my watermark renders properly, but exports with the same issue...

EDIT: Exports the watermark garbled when exporting and downscaling image

#9 Updated by Joe Giampaoli over 3 years ago

Here's what happens with my personalized watermark, renders different at different zoom levels in DT, you can see the horizontal line is a bit longer in the zoomed out view where in the 100% it's perfect.

If I export with downscale I get same problem, exporting 1t 100% all is fine...

Thanks!

#10 Updated by Joe Giampaoli over 3 years ago

Just a quick update, I was playing around with some other cropping sizes in the photos and saw that this affects the watermark a lot too, I just wanted to let you know just in case, but I believe that the crash I get in Bug #10709 might have something to do with this...

#11 Updated by Tobias Ellinghaus over 3 years ago

  • % Done changed from 20 to 0
  • Status changed from Incomplete to Closed: upstream

This seems to be something not under our control then. :(
As a workaround you could try converting the text to a path in Inkscape and use that. It's not as versatile and you can't use variables, but it might at least help with static watermarks.

#12 Updated by Joe Giampaoli over 3 years ago

Tobias Ellinghaus wrote:

This seems to be something not under our control then. :(
As a workaround you could try converting the text to a path in Inkscape and use that. It's not as versatile and you can't use variables, but it might at least help with static watermarks.

Hey! It's working perfectly well as paths! Actually it's not much of a dirty workaround! I should of thought of that for my personalized watermark made in Inkscape, everything scales proportionally and smoothly without strange distortions or overlaps...

Still, Thanks for all your help!

Cheers!

Joe

#13 Updated by Jan Müller 3 months ago

unfortunately break text to paths is the way to go

Also available in: Atom PDF