-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Ligatures rendering as emojis in iOS Safari #8267
Comments
You also seem to have been hit by the Safari 10 issue #8231 too, note font rendition for “Coaching for Success” looks a bit off. That said, I suspect this can be worked around with
And then rendition works as intended albeit much slower. |
-temp fix until mozilla/pdf.js#8267 is resolved
Same issue here with iOS 10.3 and a cordova app with pdfjs (using UIWebView) |
We had the same issue for folks who were running the latest version of iOS. (10.3.1) |
Hi,
Thanks for the reply! This is exactly what I did and it fixed the issue.
Best regards,
Christoph
…---
Christoph Schlumpf
Hegifeldstrasse 68
8404 Winterthur
Am 13.04.2017 um 14:35 schrieb John F. ***@***.***>:
We had the same issue for folks who were running the latest version of iOS. (10.3.1)
Try setting:
"disableFontFace": true in the list of defaultPreferences for web/viewer.js
That fixed it for us.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
When we apply this fix, flipping the disableFontFace to true, we immediately experience significant performance issues when downloading PDFs. Flipping the flag back to false restores the performance. |
yes, that's expected |
Any other fix other than the disableFontFace solution? The performance is really bad. What is the primary thing causing this? Ligatures? Fonts? |
The letters/glyphs are painted using lines/polygons. |
@yurydelendik Thanks for the reply, actually I meant what the problem with the original PDF is. Is there a way to convert it to solve the problem? |
I didn't really get anywhere on this, but some notes on looking at this a bit: I can reproduce on desktop safari (Version 10.1 (12603.1.30.0.34)), the 'fi' glyph isn't an emoji but it doesn't show up. The problem seems to be fixed with the technology preview (Release 29 (Safari 10.2, WebKit 12604.1.19.0.1)). Initially, I thought it was an issue with font Since the font worked in my vanilla tests, I thought it may just be the first font loaded works, but after disabling the load of g_d0_f1 and only loading g_d0_f2 it still was broken. I also tried delaying various promise resolutions and even immediately painting on font load (thinking the font was being GC'ed), but still no luck. Either safari font loading is buggy or there seems to be something PDF.js is doing that causes it to fail, but I'm out of time to look at this anymore. The issue seems to be rather strange and I'm not sure it's related to the bug linked to above with promise resolution, but at least it seems to be fixed in future versions. |
Same problem here. Using disable font face seem to be problematic (performance and incomplete rendering). By exemple, for my test document the two first page seems to be rendered blank but other pages seem to be ok (when I navigate with page navigator). I will test some more but my first impression is that we will have to wait for Apple to fix this one. |
Update here - I just removed the |
@timvandermeij feel free to close this out - 10.3.2 no longer has this issue, thanks! |
Hello. I dont have a 10.3.2 at work, I will test with my personnal tablet tonight and report. |
Still see the issue on IOS 10.3.2 and latest 10.3.3. Our app is running lastest release 1.7. |
I am experiencing the the same issues here too sadly. iOS Safari 11 beta is all good. iOS Safari 10.3.3 causes issues. Did anyone find a solution to this? Cheers |
We had this iOS 10 Safari issue with Minion Pro font, but no issue (a single file tested) with Gotham font plus outlining the text before creating the PDF. The problem is we are using older iPad models that are not eligible to update to iOS 11. New idea: We have a library viewer of about 145 pdfs (using Minion Pro) 500 KB - 1.8 MB each. As I am going through each one to make a list of ones with emoji to be re-fonted, I noticed something weird. Opening a fresh browserstack device (our physical one was unavailable), the first 6-8 pdfs I view show emoji, then the next 11-17 pdfs I open do not have emoji, and then the mobile safari website address bar says "error, reconnected", after which I need to open another fresh browserstack device because the pdf rendering spinner hangs indefinitely. Picking up on the library list where I left off, in the new session, that pattern repeated, but if I revisited a previously emoji-free pdf in that session's first 6-8, it now had emoji. Maybe there is some memory leak or very slowly fetched iOS parsing resource? Or reading the same pdf from the browser cache instead of a new http request for it. |
Link to PDF file (or attach file here):
WalmartAcademy_Ligatures_Issue.pdf
Configuration:
Steps to reproduce the problem:
What is the expected behavior?
What went wrong? Note the trolley car emoji
The text was updated successfully, but these errors were encountered: