Closed (fixed)
Project:
Textimage
Version:
6.x-2.1
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2009 at 10:04 UTC
Updated:
30 Jul 2013 at 21:01 UTC
Is it possible to adjust the leading (the vertical space between lines of text) ?
Comments
Comment #1
decipheredNot at this stage, but it is something that I would like to implement in the future.
Comment #2
sittard commentedLooking forward to seeing that - thanks for the quick reply!
Comment #3
obrigado commentedAny progress on this?
Comment #4
decipheredI have absolutely zero time to work on textimage at the moment, but I would be happy to accept patches.
Comment #5
sunchaser commentedgot my Leading up and running ...
haven't implemented anything in the admin yet , but straight up, HARDCODED into the module code cause I needed it fast.
maybe someone else can work on the admin part so you can adjust leading dynamically ...
so, in the module around line 746 replace this line :
imagettftext($image, $fontsize, $q_angle, $x, $y, $fore, $font, $text);by this block
Comment #6
sunchaser commentedworked a bit more on this
it seemed I needed to make some changes in the character spacing (tracking) too ...
Comment #7
decipheredI have been working on Textimage 3.0 for sometime now and I can confirm that this feature will be included.
Cheers,
Deciphered.
Comment #8
jasher commentedI haven't yet come across a need for leading, but I found this issue when looking for tracking adjustment.
@sunchaser: that code was useful, thanks. As I mention in another issue (specifically asking about letter-spacing: http://drupal.org/node/891196#comment-3483982), I hacked this into my own version to just deal with tracking--but there seems to be a kerning issue.
It's possible it isn't a kerning issue, but something else. Just wanted to raise the issue here, as well, as the features (leading/tracking/kerning) are closely related.
If GD can't manage this, then I understand there's not a lot Textimage can do.
Thanks.
Comment #9
timezero commentedThis works pretty good, the spacing between letters are not perfect but fairly good. The main problem is that the image is not resized according to the leading, resulting that if you have more than 1 line of text, a large blank space is added underneath the the text in the image.
Comment #10
mondrakeImplemented in 7.x-3.x