Skip to content

Commit

Permalink
Added support for Garamond font
Browse files Browse the repository at this point in the history
  • Loading branch information
artemkolotilkin authored and troosan committed Jun 4, 2021
1 parent d905e76 commit eec9e97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/PhpWord/Writer/Word2007/Part/FontTable.php
Expand Up @@ -101,6 +101,15 @@ public function write()
'w:csb0="0000019F" w:csb1="00000000" />';
$str .= '</w:font>';

$str .= '<w:font w:name="Garamond">';
$str .= '<w:panose1 w:val="02020404030301010803" />';
$str .= '<w:charset w:val="00" />';
$str .= '<w:family w:val="roman" />';
$str .= '<w:pitch w:val="variable" />';
$str .= '<w:sig w:usb0="00000287" w:usb1="00000002" w:usb2="00000000" w:usb3="00000000" ' .
'w:csb0="0000009F" w:csb1="00000000" />';
$str .= '</w:font>';

$str .= '</w:fonts>';

return $str;
Expand Down

0 comments on commit eec9e97

Please sign in to comment.