ð Ultimate Emoji Generator library for Swift
Swift 5.1 Python 3.7
mint install YutoMizutani/EmojiKit@1.2.0
make install
$ git clone https://github.com/YutoMizutani/EmojiKit.git
$ cd EmojiKit
$ make
Use as CLI
$ git clone https://github.com/YutoMizutani/EmojiKit.git
$ cd EmojiKit
$ make build
$ .build/debug/emojigen <text> <output>
Use as dependency
Add the following dependency to your Package.swift manifest:
.package(url: "https://github.com/YutoMizutani/EmojiKit.git", .upToNextMinor(from: "1.2.0"),
And then import wherever needed: import EmojiKit
emojigen <text> <output>
import EmojiKit
EmojiKit().generate(
"çµµæ\nåã",
imagePath: "out/emoji.png",
textAlignment: .left,
fontPath: "static/NotoSansMonoCJKjp-Bold.otf"
)
More usages
- Slack Emoji generator: https://github.com/YutoMizutani/SlackPet#slack-emoji-%E4%BD%9C%E6%88%90
Key | Description |
---|---|
text | Emoji text |
width | Output image width |
height | Output image height |
imagePath | Output image path |
textColor | Text color as 0xAARRGGBB |
backgroundColor | Background color as 0xAARRGGBB |
textAlignment | Text alignment |
isSizeFixed | Text size fixed |
isEnabledStretch | Text stretch |
fontPath | Font file path |
format | Image format |
quality | Image quality |
More details and parameters are to see emoji-gen/emojilib and emoji-gen/libemoji
EmojiKit is released under the MIT License.