@NonNull
    public static BitmapDrawable getEmojiDrawable(final EmojiPaint paint, final int emoji) {
        final int hashcode = new HashCodeBuilder()
                .append(paint.bitmapDimensions.first)
                .append(paint.availableSize)
                .append(paint.fontsize)
                .append(emoji)
                .toHashCode();

        synchronized (emojiCache) {
            CacheMarker marker = emojiCache.get(hashcode);
            if (marker == null) {
                marker = new CacheMarker(hashcode, getEmojiDrawableHelper(paint, emoji));
                emojiCache.put(hashcode, marker);
            }
            return (BitmapDrawable) marker.getDrawable();
        }
    }
get a drawable the size of a marker with a given text (either from cache or freshly built)

@param paint - paint data structure for Emojis
@param emoji codepoint of the emoji to display
@return drawable bitmap with text on it
main/src/main/java/cgeo/geocaching/utils/EmojiUtils.java