Box\Spout\Writer\Style\Style::mergeOtherFontProperties PHP Method

mergeOtherFontProperties() private method

private mergeOtherFontProperties ( Style $styleToUpdate, Style $baseStyle ) : void
$styleToUpdate Style Style to update (passed as reference)
$baseStyle Style
return void
    private function mergeOtherFontProperties($styleToUpdate, $baseStyle)
    {
        if (!$this->hasSetFontSize && $baseStyle->getFontSize() !== self::DEFAULT_FONT_SIZE) {
            $styleToUpdate->setFontSize($baseStyle->getFontSize());
        }
        if (!$this->hasSetFontColor && $baseStyle->getFontColor() !== self::DEFAULT_FONT_COLOR) {
            $styleToUpdate->setFontColor($baseStyle->getFontColor());
        }
        if (!$this->hasSetFontName && $baseStyle->getFontName() !== self::DEFAULT_FONT_NAME) {
            $styleToUpdate->setFontName($baseStyle->getFontName());
        }
    }