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

shouldApplyFont() public method

public shouldApplyFont ( ) : boolean
return boolean Whether specific font properties should be applied
    public function shouldApplyFont()
    {
        return $this->shouldApplyFont;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Returns the contents of the "<style:text-properties>" section, inside "<style:style>" section
  *
  * @param \Box\Spout\Writer\Style\Style $style
  * @return string
  */
 private function getTextPropertiesSectionContent($style)
 {
     $content = '';
     if ($style->shouldApplyFont()) {
         $content .= $this->getFontSectionContent($style);
     }
     return $content;
 }
All Usage Examples Of Box\Spout\Writer\Style\Style::shouldApplyFont