new FontSet($regular)]));
$result = (new Converter())->convert(new HtmlSource($html), new ConversionOptions($fonts));
file_put_contents($destination . '/text-spacing.pdf', $result->pdf);
file_put_contents($destination . '/manifest.json', json_encode([
'engine' => 'native-php', 'php' => PHP_VERSION,
'sourceSha256' => hash('sha256', $html), 'pdfSha256' => hash('sha256', $result->pdf),
'pages' => $result->pageCount, 'diagnostics' => $result->diagnostics,
'fonts' => [['family' => 'Noto Sans (explicit fallback)', 'sha256' => hash('sha256', $font)]],
], JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR) . "\n");
fwrite(STDOUT, 'text-spacing: ' . $result->pageCount . ' page(s), ' . strlen($result->pdf) . " bytes\n");