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

character corruption issue #23

Open
jhhwang53 opened this issue Jan 4, 2024 · 0 comments
Open

character corruption issue #23

jhhwang53 opened this issue Jan 4, 2024 · 0 comments

Comments

@jhhwang53
Copy link

jhhwang53 commented Jan 4, 2024

Describe the bug
Ideally with screenshots of both HTML & Figma result
SCR-20240104-kclo
SCR-20240105-oibc

When I copy and paste into a Figma canvas, it appears as follows.
Therefore, if I change the font, the Korean characters display correctly.
I wish there was an optional parameter added to the API request that allows users to select a desired font beforehand.

To Reproduce
Include reproduction HTML (optionally with CSS) to use in code.to.design Playground for reproduction:

Html

<!DOCTYPE html>
<html lang="ko">
    <head>
       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
    <body>
        <div>한글한글한글한글한글한글</div>
    </body>
</html>

Request

const response = await fetch("https://api.to.design/html", {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        "Authorization": "Bearer <MY_KEY>"
     },
    body: JSON.stringify({ html: `
    <!DOCTYPE html>
    <html lang="ko">
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      </head>
      <body>
         <div>한글한글한글한글한글한글</div>
      </body>
   </html>
`, clip: true }),
@jhhwang53 jhhwang53 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 5, 2024
@jhhwang53 jhhwang53 reopened this Jan 5, 2024
@jhhwang53 jhhwang53 reopened this Jan 5, 2024
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