Printing HTML containing Japanese characters via the @journeyapps/pdf-reports
npm package shows either no text or unicode square place holder characters.
A code example would be
const html =
`
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans+JP">
<style>
.serif_font {
font-family: "Helvetica Neue",Arial,sans-serif,"Segoe UI Symbol"
}
.noto_font {
font-family: 'Noto Sans JP', serif;
}
</style>
</head>
<body>
<p>No class: 連載</p>
<p class="serif_font">Serif Font class: 連載</p>
<p class="noto_font">Noto Font class: 連載</p>
<div>Some random div text</div>
</body>
</html>
`
const pdf_result = await pdf.generatePdf({ html: html });
The output looks like: