php - GD lib text placement in y ordinate -
i placing text on image using gd. gd places text on baseline. using imagettfbbox height of box , able calculate bottom of text is. since gd uses baseline place text. how can figure out baseline is? text , placement , size dynamic.
i using giddyup 52px font , placing in top left corner, no margins/padding, example. text height using imagettfbbox , 54px. place text @ 0,54px using imagettftext().
the text going 12px far down, because baseline of text box @ 54 px not bottom of text ends being @ 66px.
thank time,
todd
Comments
Post a Comment