Issue with "fi" ligature in HTML2Canvas
Closed this issue · 8 comments
davisshaver commented
eads commented
Whoa!
ghing commented
eads commented
@TylerFisher @jjelosua can one of you take a look into this?
TylerFisher commented
I'll take a look at @davisshaver's PR.
TylerFisher commented
Hm. I wonder if Gotham just doesn't have that ligature? What fonts are y'all using @davisshaver @ghing?
ghing commented
@TylerFisher I think I was just using whatever font is the default. I think the only thing I overwrote in the CSS was the background color and logo image.
TylerFisher commented
Cool, replicated and merged @davisshaver's PR. Works great.
cscouto commented
I solve this problem using a condition to check if the word has "fi" in the html2canvas.js
textList = ((!options.letterRendering && /^(left|right|justify|auto)$/.test(textAlign) && noLetterSpacing(getCSS(el, "letterSpacing"))) || (textNode.nodeValue.indexOf("fi") !== -1) ) ?