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

Make sure FontForge can cleanly convert bitmap fonts to OT Bitmap format #4711

Open
skef opened this issue Apr 19, 2021 · 4 comments
Open

Make sure FontForge can cleanly convert bitmap fonts to OT Bitmap format #4711

skef opened this issue Apr 19, 2021 · 4 comments
Labels

Comments

@skef
Copy link
Contributor

skef commented Apr 19, 2021

This is a note from a couple years ago: https://gitlab.gnome.org/GNOME/pango/-/issues/386

I thought we might already have some related reports (#4419 might be one) but maybe not many.

Basically, HarfBuzz and perhaps other shapers are reducing or eliminating their support for various bitmap font formats, but HarfBuzz at least supports bitmap fonts in an OpenType wrapper. FontForge is an obvious conversion tool but apparently things are a bit rocky.

Given our own unifont challenges noted in #4704 it would be good if FontForge could cleanly convert the more common bitmap font formats (especially BDF) to OpenType.

@skef skef added the metabug label Apr 19, 2021
@ctrlcctrlv
Copy link
Member

Are you aware of my bitmapfont2otb, @skef?

I've done quite a bit of work on this already, I think my script does it better than any existing one. I should try it on Unifont and see if it falls over, and if so, where.

@ctrlcctrlv
Copy link
Member

clR8x8 is example bitmapfont2otb output. It has both EBDT and CFF table in .otb.

@skef
Copy link
Contributor Author

skef commented Apr 19, 2021

bitmapfont2otb looks useful but I expect many bitmap font enthusiasts won't want the outlines if they can avoid them -- the whole point (from that point of view) is to ensure you're getting the precise bitmap tuned to the size in question.

@ctrlcctrlv
Copy link
Member

I could make it optional, or users could run ttx -x CFF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants