private function writeFonts($objWriter, $latinFont, $fontSet)
    {
        // a:latin
        $objWriter->startElement('a:latin');
        $objWriter->writeAttribute('typeface', $latinFont);
        $objWriter->endElement();

        // a:ea
        $objWriter->startElement('a:ea');
        $objWriter->writeAttribute('typeface', '');
        $objWriter->endElement();

        // a:cs
        $objWriter->startElement('a:cs');
        $objWriter->writeAttribute('typeface', '');
        $objWriter->endElement();

        foreach ($fontSet as $fontScript => $typeface) {
            $objWriter->startElement('a:font');
                $objWriter->writeAttribute('script', $fontScript);
                $objWriter->writeAttribute('typeface', $typeface);
            $objWriter->endElement();
        }
    }
private function writeFonts($objWriter, $latinFont, $fontSet)
    {
        // a:latin
        $objWriter->startElement('a:latin');
        $objWriter->writeAttribute('typeface', $latinFont);
        $objWriter->endElement();

        // a:ea
        $objWriter->startElement('a:ea');
        $objWriter->writeAttribute('typeface', '');
        $objWriter->endElement();

        // a:cs
        $objWriter->startElement('a:cs');
        $objWriter->writeAttribute('typeface', '');
        $objWriter->endElement();

        foreach ($fontSet as $fontScript => $typeface) {
            $objWriter->startElement('a:font');
                $objWriter->writeAttribute('script', $fontScript);
                $objWriter->writeAttribute('typeface', $typeface);
            $objWriter->endElement();
        }
    }
private function writeFonts ( $ objWriter , $ latinFont , $ fontSet ) { // a:latin $ objWriter -> startElement ( 'a:latin' ) ; $ objWriter -> writeAttribute ( 'typeface' , $ latinFont ) ; $ objWriter -> endElement ( ) ; // a:ea $ objWriter -> startElement ( 'a:ea' ) ; $ objWriter -> writeAttribute ( 'typeface' , '' ) ; $ objWriter -> endElement ( ) ; // a:cs $ objWriter -> startElement ( 'a:cs' ) ; $ objWriter -> writeAttribute ( 'typeface' , '' ) ; $ objWriter -> endElement ( ) ; foreach ( $ fontSet as $ fontScript => $ typeface ) { $ objWriter -> startElement ( 'a:font' ) ; $ objWriter -> writeAttribute ( 'script' , $ fontScript ) ; $ objWriter -> writeAttribute ( 'typeface' , $ typeface ) ; $ objWriter -> endElement ( ) ; } }
Write fonts to XML format

@param     PHPExcel_Shared_XMLWriter    $objWriter
@param     string                        $latinFont
@param     array of string                $fontSet
@return     string                         XML Output
@throws     PHPExcel_Writer_Exception
Write fonts to XML format