I'm using customizeWordContent to change fonts. Its works fine for latin characters, but I doesn't for Japanese characters.
For example, I have a Word document containing two text lines.
The first line is in Japanese. The second line is in English. Document uses "MS Mincho" font for both lines.
Then I run function customizeWordContent to change font to "Yu Gothic":
foreach (array('document', 'header', 'footer', 'footnote', 'endnote') as $target)
foreach (array('paragraph', 'run', 'list', 'style') as $type)
$docx->customizeWordContent(['target' => $target, 'type' => $type, 'contains' => '',], ['font' => 'Yu Gothic']);
The resulting document has fonts "MS Mincho" for the first line (the line in Japanese) and "Yu Gothic" for the second line (the line in English). So it appears that it didn't work for the Japanese line.
I tried everything (many different fonts, many different configurations) but I couldn't make it work for the Japanese line.
What should I do?