Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image renderer does not handle fallback font #85

Open
qnkhuat opened this issue Jun 5, 2024 · 0 comments
Open

Image renderer does not handle fallback font #85

qnkhuat opened this issue Jun 5, 2024 · 0 comments

Comments

@qnkhuat
Copy link

qnkhuat commented Jun 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant