Skip to content

Image renderer does not handle fallback font #85

@qnkhuat

Description

@qnkhuat

I'm using ImageRenderrer to render HTML content. The rendered text does not display Korean characters correctly, even though a fallback font is specified.

<html>
  <head>
    <link href="https://fonts.googleapis.com" rel="preconnect" />
    <link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect" />
    <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&amp;display=swap" rel="stylesheet" />
    <meta charset="utf-8" />
  </head>
  <body>
    <p style="font-family: Lato, sans-serif;">이것은 임의의 한국어 텍스트로, 설명 목적으로만 사용됩니다. 구체적인 의미를 포함하지 않으며 불쾌감을 주지 않도록 설계되었습니다.</p>
  </body>
</html>

And get this as the result

image

Expected output: I expect the renderer to fall back to the sans-serif font, which supports Korean characters, if the primary font Lato does not support them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions