/** * Enter description here... * * @param FontStyle $fstyle * @return String */ public function fontStyleToCss($fstyle) { $css = ".c" . $fstyle->getId() . "{"; //$css .= "font-family:". $fstyle->getFontId().";"; $css .= "font-size:" . $fstyle->getFontSize() . ";"; if ($fstyle->getFontBold()) { $css .= "font-weight:bold;"; } if ($fstyle->getFontItalic()) { $css .= "font-style:italic;"; } if ($fstyle->getFontUnderline()) { $css .= "text-decoration:underline;"; } $css .= "color:" . $fstyle->getFontColor(); return $css . "}"; }