Hello,
* wildcard doesn't apply to internal contents, so we recommend you to use your second approach but applying it only to content types that support font styles:
foreach (array('paragraph', 'run', 'list', 'style') as $type) {
$docx->customizeWordContent(['target' => 'document', 'type' => $type, 'contains' => '',], ['font' => 'Calibri']);
}
On https://www.phpdocx.com/api-documentation/docxcustomizer/customize-docx-Word-documents-PHP you can read the supported styles for each content type.
Regards.