-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Not Rendering ligatures #838
Comments
Hi, I've also encountered the same issue. with |
The solution above doesn't work if css letter spacing is applied on the text... |
Could anyone tell me the css that I would need to remove to get this to work for me as well? @mtskf |
I changed this:
to this:
and that seemed to work for me this will have a side effect on elements with css(word-wrap: break-word;) |
I solve this problem using a condition to check if the word has "fi" |
Fixing issue with "fi" for formatted fonts niklasvh#838
The problemThe problem (pointed out in the title) is with ligatures. Some fonts combine certain letters into a single character, especially When The solutionThe easiest solution is to use the CSS style var el = document.getElementById('myElement');
el.style.fontFeatureSettings = '"liga" 0';
html2canvas(el, options); The support for font-feature-settings is alright but not perfect; a better alternative would be |
I'm still seeing this in 1.0.0-alpha.12 with the changes above on chrome, works fine out of the box on firefox |
Hi Im using html2canvas to generate a jpeg but "ff", "fl", and "fi"s are not rendering. See images below. Any reason why or has anyone else encountered this?
The text was updated successfully, but these errors were encountered: