public function __clone() { $this->font = clone $this->font; $this->marker = clone $this->marker; if (is_object($this->outline)) { $this->outline = clone $this->outline; } }