Skip to content
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

(Draft) Add Type 3 Fonts Functionality and Support for Color Fonts 🎨 #1305

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andersonhc
Copy link
Collaborator

@andersonhc andersonhc commented Nov 20, 2024

Initial Draft: Type 3 Fonts and Color Fonts Support

Fixes #224

This PR introduces the initial implementation for Type 3 fonts and Color Fonts in PDFs. 🚀

Features:

  • Type 3 Fonts:
    • Type 3 fonts can now be added to a PDF, enabling custom, embedded font glyphs.
  • Raster-Based Color Fonts:
    • Basic functionality for raster formats (CBDT+CBLC, SBIX) is working.
  • SVG-Based Color Fonts:
    • Work in progress for SVG formats (SVG, COLRv0, COLRv1).
    • The next step is to refactor fpdf.draw_path() to produce the desired output without writing directly to the buffer.

Next Steps:

  • Add support for SVG color fonts.
  • Perform cleanup and optimization for better performance and maintainability.

Checklist:

  • A unit test is covering the code added / modified by this PR

  • This PR is ready to be merged

  • In case of a new feature, docstrings have been added, with also some documentation in the docs/ folder

  • A mention of the change is present in CHANGELOG.md

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.

@andersonhc andersonhc marked this pull request as draft November 20, 2024 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CBDT/CBLC font support for color emojis
1 participant