Skip to content

Commit eec9e97

Browse files
artemkolotilkintroosan
authored andcommitted
Added support for Garamond font
1 parent d905e76 commit eec9e97

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PhpWord/Writer/Word2007/Part/FontTable.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ public function write()
101101
'w:csb0="0000019F" w:csb1="00000000" />';
102102
$str .= '</w:font>';
103103

104+
$str .= '<w:font w:name="Garamond">';
105+
$str .= '<w:panose1 w:val="02020404030301010803" />';
106+
$str .= '<w:charset w:val="00" />';
107+
$str .= '<w:family w:val="roman" />';
108+
$str .= '<w:pitch w:val="variable" />';
109+
$str .= '<w:sig w:usb0="00000287" w:usb1="00000002" w:usb2="00000000" w:usb3="00000000" ' .
110+
'w:csb0="0000009F" w:csb1="00000000" />';
111+
$str .= '</w:font>';
112+
104113
$str .= '</w:fonts>';
105114

106115
return $str;

0 commit comments

Comments
 (0)