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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -