SeleniumHQ / docker-selenium

Provides a simple way to run Selenium Grid with Chrome, Firefox, and Edge using Docker, making it easier to perform browser automation
http://www.selenium.dev/docker-selenium/
Other
8k stars 2.51k forks source link

[🐛 Bug]: PDF generated on selenium nodes are missing some unicode characters [𝘽𝙍𝙐 U+1D63D] #2460

Open quertenmont opened 2 weeks ago

quertenmont commented 2 weeks ago

What happened?

Hello,

I am generating some pdf on a selenium node containg unicode characters like these: 𝘽𝙍𝙐 (i.e. U+1D63D ) Unfortunately, the generated pdf doesn't show those characters but have a "no glyph box" instead.

I have no issue when I print the pdf from my chrome brower, so I suppose that the issue is related to a missing font in the docker, but I don't know which one neither how to add it.

Could someone please help and batch the docker ?

Thanks in advance,

Command used to start Selenium Grid with Docker (or Kubernetes)

I am on kubernetes and running version 4.26

Relevant log output

-

Operating System

kubernetes

Docker Selenium version (image tag)

4.26

Selenium Grid chart version (chart version)

No response

github-actions[bot] commented 2 weeks ago

@quertenmont, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

VietND96 commented 2 weeks ago

I tried to search for something and saw this https://support.google.com/docs/thread/187910945/no-glyph-script-error?hl=en So, this means a font needs to be installed in Node?

VietND96 commented 2 weeks ago

I saw you mentioned print the PDF. However, above ticket also mentioned

NOTE: Although the characters/glyphs may be viewable on screen, they do not necessarily render when printing to PDF.

VietND96 commented 2 weeks ago

Also, can you provide what language is used in your PDF that has font issue?

quertenmont commented 2 weeks ago

@VietND96 thanks for looking into it. It comes from lol LinkedIn post written in English actually, but some people use these special characters to have some effects (bold and/or italics) on the letters. They typically use generators like these https://yaytext.com/bold-italic/ to convert there text and bypass font standardisation enforced by social platforms. You can use the generator to make your tests and make sure you cover the full range of Unicode used.

Thanks in advance Loïc