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

How to create CBDT from PNG input files? #447

Open
linusg opened this issue Mar 4, 2023 · 0 comments
Open

How to create CBDT from PNG input files? #447

linusg opened this issue Mar 4, 2023 · 0 comments

Comments

@linusg
Copy link

linusg commented Mar 4, 2023

I'm not sure if this is in scope for nanoemoji, poking around in the source code for a bit suggests it might be possible - SVGs are rasterized to PNGs internally, after all, at least for CBDT fonts.

My use case is as follows: I have PNG input files, they're pixel art emojis. I want to package them into a TTF file, which I currently do using nanoemoji by first turning the bitmaps into SVG files (actual paths, not simply embedding PNG data), feeding those to nanoemoji which then runs them through picosvg/resvg and takes care of the rest. This process unfortunately creates visible gaps between path segments:

image

What would be the best way to approach this without temporary SVG files?

The project in question is https://github.com/linusg/serenityos-emoji-font. Thanks in advance!

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

No branches or pull requests

1 participant