public function setFontProperties($Format = [])
    {
        $R = isset($Format["R"]) ? $Format["R"] : -1;
        $G = isset($Format["G"]) ? $Format["G"] : -1;
        $B = isset($Format["B"]) ? $Format["B"] : -1;
        $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
        $FontName = isset($Format["FontName"]) ? $Format["FontName"] : null;
        $FontSize = isset($Format["FontSize"]) ? $Format["FontSize"] : null;

        if ($R != -1) {
            $this->FontColorR = $R;
        }
        if ($G != -1) {
            $this->FontColorG = $G;
        }
        if ($B != -1) {
            $this->FontColorB = $B;
        }
        if ($Alpha != null) {
            $this->FontColorA = $Alpha;
        }

        if ($FontName != null) {
            $this->FontName = $this->loadFont($FontName, 'fonts');
        }
        if ($FontSize != null) {
            $this->FontSize = $FontSize;
        }
    }
public function setFontProperties($Format = [])
    {
        $R = isset($Format["R"]) ? $Format["R"] : -1;
        $G = isset($Format["G"]) ? $Format["G"] : -1;
        $B = isset($Format["B"]) ? $Format["B"] : -1;
        $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 100;
        $FontName = isset($Format["FontName"]) ? $Format["FontName"] : null;
        $FontSize = isset($Format["FontSize"]) ? $Format["FontSize"] : null;

        if ($R != -1) {
            $this->FontColorR = $R;
        }
        if ($G != -1) {
            $this->FontColorG = $G;
        }
        if ($B != -1) {
            $this->FontColorB = $B;
        }
        if ($Alpha != null) {
            $this->FontColorA = $Alpha;
        }

        if ($FontName != null) {
            $this->FontName = $this->loadFont($FontName, 'fonts');
        }
        if ($FontSize != null) {
            $this->FontSize = $FontSize;
        }
    }
public function setFontProperties ( $ Format = [ ] ) { $ R = isset ( $ Format [ "R" ] ) ? $ Format [ "R" ] : - 1 ; $ G = isset ( $ Format [ "G" ] ) ? $ Format [ "G" ] : - 1 ; $ B = isset ( $ Format [ "B" ] ) ? $ Format [ "B" ] : - 1 ; $ Alpha = isset ( $ Format [ "Alpha" ] ) ? $ Format [ "Alpha" ] : 100 ; $ FontName = isset ( $ Format [ "FontName" ] ) ? $ Format [ "FontName" ] : null ; $ FontSize = isset ( $ Format [ "FontSize" ] ) ? $ Format [ "FontSize" ] : null ; if ( $ R != - 1 ) { $ this -> FontColorR = $ R ; } if ( $ G != - 1 ) { $ this -> FontColorG = $ G ; } if ( $ B != - 1 ) { $ this -> FontColorB = $ B ; } if ( $ Alpha != null ) { $ this -> FontColorA = $ Alpha ; } if ( $ FontName != null ) { $ this -> FontName = $ this -> loadFont ( $ FontName , 'fonts' ) ; } if ( $ FontSize != null ) { $ this -> FontSize = $ FontSize ; } }
Set current font properties
@param array $Format
Set current font properties