= 1 && $face <= 5) { $this->font = $face; } else { $this->font = imageloadfont($face); } $this->color = $color; } public function writeText($image, $x, $y, $text) { imagestring($image->getHandle(), $this->font, $x, $y, $text, $this->color); } }