question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make fromHTML capable of using customfonts

See original GitHub issue

I have seen arabic/persian is supported now when using text function directly but is there any way to convert an HTML containing arabic/persian text rendering correctly?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11

github_iconTop GitHub Comments

12reactions
magnus-erikssoncommented, Jul 24, 2019

Doesn’t html2pdf just create a large image of the HTML and wrap it inside a PDF-document? If yes, then it’s a poor substitute for fromHTML() which renders the text as text (which importantly makes it selectable). If it’s just an image, you won’t be able to select the text in the document. For me, that’s a massive no-go. If I want to generate an image, I’ll do that. I don’t really see the point of generate an image in a PDF-container.

9reactions
Uzlopakcommented, May 9, 2018

If you modify fromhtml/addHtml, then yes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make fromHTML capable of using customfonts #1741 - GitHub
I read in documentatiom that addhtml is deprecated and using html2pdf (which looks like uses html2canvas internally) is prefered
Read more >
html - How to add some non-standard font to a website?
The way to go is using the @font-face CSS declaration which allows authors to specify online fonts to display ...
Read more >
How to Add a Custom Fonts to Your Website (HTML and CSS)
In this video you will learn how to add custom fonts to your website or web app. This is not about Google or...
Read more >
Web fonts - Learn web development - MDN Web Docs - Mozilla
In this article we will go further, exploring web fonts in detail. We'll see how to use custom fonts with your web page...
Read more >
HTML to PDF conversion with custom fonts and multi-lingual ...
In this article we'll look at how to use the Plumsail Documents Convert HTML to PDF action with different fonts (including custom fonts)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found