0

我正在使用通过使用以下 WebFonts 部署到 Azure Linux Functions 的 PuppeteerSharp。我不能保证打印出不同语言的所有字符的 PDF 输出。

$font-family: Arial-Unicode-MS,myanmar3,Noto-Sans-Khmer;


@font-face{
  font-family:"Arial-Unicode-MS";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:url('fonts/Arial-Unicode-MS.woff2') format("woff2");
}
@font-face{
  font-family:"myanmar3";
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src:url('fonts/myanmar3.woff2') format("woff2");
}
@font-face {
  font-family: 'Noto-Sans-Khmer';
  font-style: normal;
  font-weight: 400;
  font-display: auto;
  src: url('fonts/noto-sans-khmer-v9-khmer-regular.woff2') format('woff2');
}

但是,打印的 PDF 具有不同的输出:

案例 1:大多数时候打印的 PDF 仅包含拉丁字符:

案例 2:缺少高棉字符:

Case3:打印所有语言字符:

4

0 回答 0