-
Notifications
You must be signed in to change notification settings - Fork 259
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
CBDT/CBLC font support for color emojis #224
Comments
Note that solving this would allow to use the Noto Emoji font:
Currently #418 seems like the best way to go. |
Note that with the latest code, after merging #477, no error is raised anymore, but emojis are not visible in the generated PDF |
Seems like We need to figure what changes need to be made to |
Hello, may i ask if the problem is still there, right? Since I m working on generating pdf file that contains Chinese character and emojis. I used the latest version of fpdf2 with In another scenario, I use |
Color fonts are not part of the PDF standard so readers won't render them. Some other PDF tools use workarounds like type3 fonts to produce them but we don't have any mechanism for that in fpdf2 at this moment. |
Alright, i ll be settled with the black-and-white emoji. But what about the visibility problem with |
Expanding a little more on this topic. Despite their widespread use, color fonts are not supported by the PDF standard. This means that even if a PDF producer embeds all necessary color tables in a file, PDF clients will not render them correctly. There are viable workarounds adopted by some PDF producers. A detailed 30-minute presentation available at the link below excellently outlines both the problem and potential solutions: Among the suggested solutions, the most effective is to convert color glyphs into Type-3 font glyphs. Type-3 fonts are unique in that each glyph is treated as a separate graphic object within the PDF. There are four main types of color fonts, all included in the ISO 14496-22 standard, which is publicly accessible and can be downloaded here: The types are:
To successfully implement this feature in fpdf2, we would need to:
|
Continued from #145
This code:
...generates an error:
Solving this can count as part of hacktoberfest
The text was updated successfully, but these errors were encountered: