Swiftpack.co - Package - YutoMizutani/EmojiKit

EmojiKit

Swift MIT License Swift Package Manager compatible

📚 Ultimate Emoji Generator library for Swift

EmojiKit

Requirements

EmojiKit requires Swift 5 or higher.

Swift Package Manager

Add the following dependency to your Package.swift manifest:

.package(url: "https://github.com/YutoMizutani/EmojiKit.git", .branch("master")),

Example

import EmojiKit

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

How to build

$ make install
$ make build

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: 2
Help us keep the lights on

Dependencies

Used By

Total: 1