Swiftpack.co -  YutoMizutani/EmojiKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
YutoMizutani/EmojiKit
📚 Ultimate Emoji Generator library for Swift
.package(url: "https://github.com/YutoMizutani/EmojiKit.git", from: "1.2.0")

EmojiKit

Swift MIT License Swift Package Manager compatible

📚 Ultimate Emoji Generator library for Swift

EmojiKit

Requirements

Swift 5.1 Python 3.7

Install

Mint

mint install YutoMizutani/EmojiKit@1.2.0

Install

make install

Make

$ git clone https://github.com/YutoMizutani/EmojiKit.git
$ cd EmojiKit
$ make

Swift Package Manager

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

Usage

emojigen <text> <output>

mint.png

Example

import EmojiKit

EmojiKit().generate(
    "絵文\n字。",
    imagePath: "out/emoji.png",
    textAlignment: .left,
    fontPath: "static/NotoSansMonoCJKjp-Bold.otf"
)

More usages

Parameters

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

License

EmojiKit is released under the MIT License.

GitHub

link
Stars: 6
Last commit: 1 year ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Dependencies

Related Packages

Release Notes

Add `emojigen` cli command
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API