Non-English characters are showing as rectangle boxes
See original GitHub issueSteps to reproduce
Environment Details:
- Puppeteer version: puppeteer-core : 2.0.0
- Platform / OS version: AWS Lambda
- URLs (if applicable): http://dir.hinkhoj.com
- Node.js version: 10
Code that reproduces the issue.
const browserConfig = {
args: chromium.args,
defaultViewport: chromium.defaultViewport,
executablePath: await chromium.executablePath,
headless: chromium.headless
}
console.log('launching the browser');
browser = await puppeteer.launch(browserConfig);
const page = await browser.newPage();
await page.goto('http://dir.hinkhoj.com');
await page.screenshot({fullPage: true});
What is the expected result? Website contains Hindi language fonts which are not rendering.
What happens instead? It’s showing Hindi fonts as rectangle boxes. It’s happening on AWS Lambda only.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Non-English characters are showing as rectangle boxes. #5311
Website contains Hindi language fonts which are not rendering. What happens instead? It's showing Hindi fonts as rectangle boxes. It's happening ...
Read more >Why does some text display with square boxes in some apps ...
When running certain apps on Windows 10 desktop or Windows 10 Mobile, some characters display as a square or rectangular box, or as...
Read more >What does it mean when my text is displayed as boxes?
Specifically, the boxes represent characters not supported by the selected font.
Read more >What symbol is the square box shown for non-representable ...
A rectangle that has an X inside means there is a Unicode character or emoji that is meant to show there, but your...
Read more >Why do I see boxes when typing in my language?
The “boxes” are a result of the default font style within the titles not supporting the characters of the inputted language.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@theashishranjan Your syntax is off, should be:
@swngarg1308 FYI: since version 3.0.4 the
font
method accepts paths to local files too and it will symlink them into the correct directory (which should be faster than copying them). Example: