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

Emoji not inserted into font using sbix format #22

Open
pj opened this issue Apr 3, 2022 · 1 comment
Open

Emoji not inserted into font using sbix format #22

pj opened this issue Apr 3, 2022 · 1 comment

Comments

@pj
Copy link

pj commented Apr 3, 2022

Hi there, I'm trying to add some emoji to the apple emoji fonts using the sbix format, but it doesn't see to show up. I've tried extracting files, injecting the files, then extracting again and comparing the results and it doesn't seem to show up. I compiled the jar file from latest master.

Script I'm using is:

#!/bin/bash

rm -rf 'Apple Color Emoji.ttf.sbix.d'
rm -f 'Apple Color Emoji.ttf.sbix.ttf'
rm -rf 'Apple Color Emoji.ttf.sbix.ttf.sbix.d'
java -jar ../bitsnpicas/main/java/BitsNPicas/BitsNPicas.jar extractsbix Apple\ Color\ Emoji.ttf

rsync -a ./resized_memes/* ./Apple\ Color\ Emoji.ttf.sbix.d 

java -jar ../bitsnpicas/main/java/BitsNPicas/BitsNPicas.jar injectsbix Apple\ Color\ Emoji.ttf

java -jar ../bitsnpicas/main/java/BitsNPicas/BitsNPicas.jar extractsbix Apple\ Color\ Emoji.ttf.sbix.ttf
diff -r Apple\ Color\ Emoji.ttf.sbix.d Apple\ Color\ Emoji.ttf.sbix.ttf.sbix.d

Output is:

Processing /Users/pauljohnson/Programming/emoji_testing/Apple Color Emoji.ttf... done.
Processing /Users/pauljohnson/Programming/emoji_testing/Apple Color Emoji.ttf... done.
Processing /Users/pauljohnson/Programming/emoji_testing/Apple Color Emoji.ttf.sbix.ttf... done.
Only in Apple Color Emoji.ttf.sbix.d/160: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/20: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/26: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/32: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/40: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/48: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/52: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/64: char_F0000.png
Only in Apple Color Emoji.ttf.sbix.d/96: char_F0000.png

I would expect to see files in the other folder that weren't in the first.

Thanks for your work! I'll keep seeing if I can debug what's happening.

@RebeccaRGB
Copy link
Member

I think the issue you're having is that the TTF you inject the emoji into has to already have glyphs for the characters you want, and I don't think Apple Color Emoji has U+F0000.

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

2 participants