public function setFont($font) {

		if(false === is_string($font)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($font)), E_USER_ERROR);
		}

		$file = new File($font);

		if(false === $file -> exists()) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be an existing font', __METHOD__), E_USER_ERROR);
		}

		$this -> font = $file;

		return $this;
	}
public function setFont($font) {

		if(false === is_string($font)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($font)), E_USER_ERROR);
		}

		$file = new File($font);

		if(false === $file -> exists()) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be an existing font', __METHOD__), E_USER_ERROR);
		}

		$this -> font = $file;

		return $this;
	}
public function setFont ( $ font ) { if ( false === is_string ( $ font ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ font ) ) , E_USER_ERROR ) ; } $ file = new File ( $ font ) ; if ( false === $ file -> exists ( ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be an existing font' , __METHOD__ ) , E_USER_ERROR ) ; } $ this -> font = $ file ; return $ this ; }
Set the font by giving a file path as font
@param string $font
@return sFire\Captcha\Captcha
Set the font by giving a file path as font