🎉 Ultimate Emoji Generator library using Skia
- CMake
- Python 2.7
- C11 Compiler
- C++14 Compiler
- macOS 10.12 Sierra
- macOS 10.13 High Sierra
- macOS 10.14 Mojave
- Debian 9 Stretch
$ brew install cmake
$ sudo apt-get update
$ sudo apt-get install git cmake g++ python libfontconfig1-dev \
libx11-dev libxcomposite-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev -y
$ git submodule update --init
$ cmake .
$ make
#include <stdio.h>
#include <string.h>
#include "emoji.h"
int main(void) {
EgGenerateParams params;
memset(¶ms, 0, sizeof(params));
params.fText = "絵文\n字。";
params.fWidth = 256;
params.fHeight = 256;
EgGenerateResult result;
if (emoji_generate(¶ms, &result) != EG_OK) {
emoji_free(&result);
return -1;
}
FILE *fp = fopen("./emoji.png", "w");
fwrite(result.fData, result.fSize, 1, fp);
fclose(fp);
emoji_free(&result);
return 0;
}
See also example
directory.
$ clang-format --version
clang-format version 7.0.0 (tags/google/stable/2018-04-24)
$ clang-format -i -style=file src/*.cpp src/*.h
- Google 開発の 2D グラフィックライブラリ Skia の紹介とはじめかた (Japanese)
MIT © Emoji Generator