Descenders Cut Off From Bottom Of Text
popepiusx2 - September 21, 2009 - 13:55
| Project: | Signwriter |
| Version: | 6.x-2.0-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I'm using the font Anivers Regular and whenever Signwriter creates an image, it slices off the descenders of the letters (the bottom parts of g, p, q, j, y). Will there be a value in the next release that is the same as the CSS property "line-height" so that the descenders can be kept? At the moment the problem can be solved by setting a drop shadow to the same colour as the page background then increasing the y-offset of the shadow but this is only a workaround. For more info see http://en.wikipedia.org/wiki/Descender).

#1
I worked around this issue with a combination of specifying the height of the image and the offset until it matched my expectations, there was no need to set drop-shadow. Not that convenient, but it works. Wether you have to tweak depends on the font you are using and also on the text size. I'm not sure wether reading a font family's line-height property is done by the library or not.
ed. Actually, to be more specific, here's an example:
font size: 24px
height: 40px
y-offset: -8px
#2
sub
#3
I too am seeing this new behavior. Not seen before. Wondering what's causing it? Is there anywhere to add room to the bottom of the image in code?