toys/freetype-harfbuzz
anjingyu dc533860a9 feat: font 2025-03-04 09:59:41 +08:00
..
CMakeLists.txt feat: font 2025-03-04 09:59:41 +08:00
README.md fix: fixed a bug when calculate the descent of the text string 2025-02-13 15:41:50 +08:00
clfontft.cpp feat: update 2024-09-24 11:53:36 +08:00
clfontft2.cpp fix: fixed a bug when calculate the descent of the text string 2025-02-13 15:41:50 +08:00
ft.cpp feat: freetype emoji fonts 2025-01-07 15:07:53 +08:00
main.c feat: freetype emoji fonts 2025-01-07 15:07:53 +08:00
output.png feat: freetype emoji fonts 2025-01-07 15:07:53 +08:00
stb_truetype.h feat: font 2025-03-04 09:59:41 +08:00
stt.c feat: font 2025-03-04 09:59:41 +08:00

README.md

Create Emoji Text via Freetype

# Build
admake rebuild

# Run
# NOTE(anjingyu): You should select a correct font for colorful emoji text!!!
.build/linux/x64/bin/Debug/clfontft2 -o output.png /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf 🐰
.build/linux/x64/bin/Debug/hbft /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf 🐰
.build/linux/x64/bin/Debug/clfontft2 -o output.png ~/.local/share/fonts/maple/MapleMono-SC-NF-Regular.ttf /usr/share/fonts/truetype/noto/NotoColorEmoji.ttf 🐰🐰🐰bunny和我
# Nerd font
.build/linux/x64/bin/Debug/clfontft2 -o output.png ~/.local/share/fonts/maple/MapleMono-SC-NF-Regular.ttf "and󰊓和"

References