Adding png meme/icon to existing true type or open type font

85 Views Asked by At

I want to add a png icon to an existing font for use in my terminal on macOS. I've looked into using the python fonttools package, but I can't figure out how you would add a png to the font. It sounds like I need to modify/add the sbix table, but I'm struggling to find an example where this happens. Is this possible?

1

There are 1 best solutions below

0
On

You can use ttx (alias from fonttools) for extract and pack your font.

ttx -z extfile YourFont

Doc: https://fonttools.readthedocs.io/en/latest/ttx.html