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
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

genox - September 24, 2009 - 17:01

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

momper - September 28, 2009 - 12:59

sub

#3

acb - October 5, 2009 - 21:42

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?

 
 

Drupal is a registered trademark of Dries Buytaert.