Skip to content

Instantly share code, notes, and snippets.

@flaki
Last active January 8, 2016 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaki/d82b5581b08e90d0a68a to your computer and use it in GitHub Desktop.
Save flaki/d82b5581b08e90d0a68a to your computer and use it in GitHub Desktop.
Enabling FirefoxEmoji emoticons and the Firefox OS Emoji keyboard

Firefox OS Emoji 101

How to enable the built-in emoji keyboard?

  • Go to Settings ➡️ Keyboards ➡️ Select Keyboards:
  • Tick ✅ Emoji in the Built-in Keyboard group
  • Use the "change layout" button on the keyboard to switch between layouts, or
  • Long-press on the layout-change button and select "Emoji" to enable

If the option is not available, make sure you are on latest master, or if you are Foxfooding, set the nightly-latest update channel in Settings -> Developer, and update to the latest nightly.

please note nightly-latest builds are less stable!

Pushing

If you are not seeing the correct, FirefoxEmoji-style emoticons, you may have to manually download and push the FirefoxEmoji font to your phone.

To do that, first download the FirefoxEmoji.ttf font file from GitHub or fetch it via the command line:

wget http://mozilla.github.io/fxemoji/dist/FirefoxEmoji/FirefoxEmoji.ttf

Then you'll have to hook up your phone to your computer via USB and push the file onto the system/font directory on the device.

First, check if the device is connected (you will have to have Debugging via USB enabled on the device in the Developer menu — set it either to ADB, or ADB and DevTools to be able to use WebIDE as well).

adb devices

This should list at least one device under List of attached devices. Then, go on & push the FirefoxEmoji.ttf file onto the device:

adb root
adb remount
adb push FirefoxEmoji.ttf system/fonts/

Note: you will need to have adb installed

Optionally - you might need to remove NotoColorEmoji.ttf

adb shell rm -f system/fonts/NotoColorEmoji.ttf

Restart your phone!

If you already have adb handy, you should be able to restart b2g from the command line:

adb shell stop b2g
adb shell start b2g

Enjoy!

Enjoy your new emoji keyboard layout, and fancy emojis showing up in your inbox, SMS messages or Twitter feed! 🎉

Check out mozilla.github.io/fxemoji to see the FirefoxEmoji set in its full glory, designed by the wonderful Sabrina Smelko. 😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment