$imageTextBaseline
This function allows you to control the vertical alignment (baseline) of text within an image. By default, the text aligns to the bottom
.
Usage
$imageTextBaseline[Baseline]
Where Baseline
is one of the supported values.
Baseline Values
The following values are supported for the Baseline
parameter:
top
: Aligns the text to the top of the specified area.middle
: Centers the text vertically within the specified area.bottom
: Aligns the text to the bottom of the specified area (this is the default).
Example
The image below demonstrates the effect of each baseline option: