Skip to content

Commit 7157900

Browse files
authored
Update Font.php - Typeos in lang
1 parent edb7752 commit 7157900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/RTF/Style/Font.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function write()
109109
// Paragraph not implemented.
110110
$content .= $this->getValueIf($style->isRTL(), '\rtlch');
111111
$content .= $this->getValueIf($style->getShading() !== null, '\chcfpat' . $this->colorIndex); // Doesn't work; coloring not implemented.
112-
$content .= $this->getValueIf($style->getColor() !== null, '\lnag' . $this->langIndex); // Doesn't work; language not implemented.
112+
$content .= $this->getValueIf($style->getLang() !== null, '\lang' . $this->langIndex); // Doesn't work; language not implemented.
113113
// Whitespace and fallbackFont are HTML specific
114114

115115
// Other items not in included in array found in PhpOffice\PhpWord\Style\Font\getStyleValues

0 commit comments

Comments
 (0)