Calculated Fields FormのPDF Add-Onで日本語を使用する方法
Calclated Fields FormのPDF Genetatorアドオンで、
日本語を使用できるようにするための記述方法。
次のコードで実験してください。
Enter the HTML code to generate the PDF file:
<!DOCTYPE html>
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&display=swap" rel="stylesheet">
<style>
* {
font-family: 'M PLUS Rounded 1c', sans-serif;
}
</style>
</head>
<body>
<h1 style="font-weight:normal;">PDF Generator | PDFジェネレーター</h1>
<p><%fieldname1_value%> <%fieldname2_value%></p>
<p>abcdefg</p>
<p>abcdefg</p>
<p>ABCDEFG</p>
<p>ABCDEFG</p>
<p>1234567890</p>
<p>1234567890</p>
</body>
</html>公式で日本語化するテンプレートサンプルが発表されました!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap" rel="stylesheet">
<style>* {font-family: "Noto Sans JP", sans-serif;}</style>
</head>
<body>
ここに記述してください。
</body>
</html>

