-
Notifications
You must be signed in to change notification settings - Fork 185
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
Bitcoin sign (₿, U+20BF) doesn't render in PDF and some browsers #106
Comments
Thanks for the info @dhimmel, I'll look into it. In my case I was using Chrome on Ubuntu 16.04, and the bitcoin sign didn't render correctly on the html either. |
Awesome. Do you think we should load a font or leave it up to viewers to have up-to-date fonts? For reference, the CSS we're using is |
I think is best to load a font, that way we would be certain that the generated document looks the same for anyone viewing it. |
Do you want to implement this? And if so, what's your timeline? I'm wondering whether we should wait to post to Sci-Hub Manuscript v3... I could always print to PDF as a workaround. |
Sure! Let me give it a quick try now, and I'll let you know if I run into any issues that may require more time. |
@dhimmel do you have any preference for what font to use?? |
PeerJ seems to be using Helvetica with fallback to Arial. Another solution could be using the HTML entity |
Sorry, I have no ideas about the best font. |
I don't understand this? Why should how the character is represented in plain text affect whether your browser can display it? |
Me neither, I need to read more about it. On my computer I see they are rendered differently: (₿, ₿ != ฿ Edit: Here's how I see these characters here on Github. |
Same behavior for me in both browsers I tested |
This is because |
Oh that explains the difference, I must have made a mistake when pasting the code I'll try to look for a font that supports the latest unicode characters and embed it with the build. |
As commented by @arielsvn in greenelab/scihub-manuscript#51 (comment):
This is likely due to the unicode character (₿,
U+20BF
) a recent addition as part of Unicode 10.0, released June 2017. Note this release has other important symbols/emojis such as 🧟 (Zombie) and 🧖 (Person in Steamy Room).For me, on Chrome on Ubuntu 17.10, the bitcoin sign renders in the HTML but not the PDF. I'm assuming the PDF gets a certain font embedded on Travis CI, which doesn't have the latest characters. Note that when I generate the PDF locally, the bitcoin signs do render.
So @arielsvn, I think we may want to look into the following solutions:
@arielsvn you probably know best what to do here.
The text was updated successfully, but these errors were encountered: