Dompdf\Canvas::text
Writes text at the specified x and y coordinates See {@link Style::munge_color()} for the format of the color array.
Signature
public function text(float
$x,
float
$y,
string
$text,
string
$font,
float
$size,
[array
$color = ,
[float
$word_space = 0.0,
[float
$char_space = 0.0,
[float
$angle = 0.0]]]] )
Parameters
$x
—
float
$y
—
float
$text
—
string
- the text to write
$font
—
string
- the font file to use
$size
—
float
- the font size, in points
$color
—
array
$word_space
—
float
- word spacing adjustment
$char_space
—
float
- char spacing adjustment
$angle
—
float
- angle