-
Notifications
You must be signed in to change notification settings - Fork 26
Build instructions
First of all, in most cases you don't need to build the font from scratch. There is always a ttf
-file ready at fonts
or in the releases. But if you think you need to build the font, here is a quick instruction:
Right now, there are no binary releases of the build software, except for the Docker container.
For running it (except with Docker of course), you'll need to have your LIB
(Windows) or LD-LIBRARY-PATH
(Linux & Unix) set to include the path to the pythonxx.lib
or libpython.so
, more on that in the README for the software.
Here's how the script I use looks like:
emoji_builder.exe --offline -v -o Blobmoji.ttf -t .\tables\ --emoji-test .\emoji-test.txt --flags .\third_party\region-flags\svg blobmoji -w -a .\emoji_aliases.txt --ttx-tmpl .\NotoColorEmoji.tmpl.ttx.tmpl --palette .\Blobmoji.gpl --font_files .\ComicNeue --default_font "Comic Neue"
# Rename the Windows-compatible file
rm fonts\BlobmojiWindows.ttf
mv fonts\Blobmoji_win.ttf fonts\BlobmojiWindows.ttf
# Build EmojiCompat (will be integrated at some point)
cd ..\emojicompat\noto-fonts\emoji-compat
python .\createfont.py ..\..\..\blobmoji\fonts\Blobmoji.ttf ..\..\unicode\
cp .\font\NotoColorEmojiCompat.ttf ..\..\..\blobmoji\fonts\BlobmojiCompat.ttf
cd ..\..\..\blobmoji
git add fonts
Of course, it will look different for you, e.g. because of different paths, etc.
A basic build command for the "normal" font would look like this (assuming that you have installed the software):
emoji_builder -v -o Blobmoji.ttf --flags ./third_party/region-flags/svg blobmoji -w -a ./emoji_aliases.txt --ttx-tmpl ./NotoColorEmoji.tmpl.ttx.tmpl --palette ./Blobmoji.gpl --default_font "Comic Neue"
Option | Argument | Meaning |
---|---|---|
-v |
Output warnings, like missing emojis (currently with false-positives) | |
-o |
Blobmoji.ttf |
Name the output file Blobmoji.ttf
|
--flags |
./third_party... |
Use the flags provided in that directory |
-w |
Make the flags look wavy | |
-a |
./emoji_aliases.txt |
Use these aliases (currently almost empty) |
--ttx-tmpl |
./NotoColorEmoji.tmpl.ttx.tmpl |
Use this as a template (mostly for the names, etc.) |
--palette |
./Blobmoji.gpl |
Use the given, limited color palette |
--default_font |
"Comic Neue" |
Use Comic Neue as the fallback font, e.g. when it cannot be recognized |