Skip to content

Instantly share code, notes, and snippets.

View llxiaoyuan's full-sized avatar
🚢
Where knowledge ended, speculation began.

Chase llxiaoyuan

🚢
Where knowledge ended, speculation began.
View GitHub Profile
@llxiaoyuan
llxiaoyuan / clfontpng.cc
Created November 28, 2024 15:48 — forked from jokertarot/clfontpng.cc
How to render color emoji font with FreeType 2.5
// = Requirements: freetype 2.5, libpng, libicu, libz, libzip2
// = How to compile:
// % export CXXFLAGS=`pkg-config --cflags freetype2 libpng`
// % export LDFLAGS=`pkg-config --libs freetype2 libpng`
// % clang++ -o clfontpng -static $(CXXFLAGS) clfontpng.cc $(LDFLAGS) \
// -licuuc -lz -lbz2
#include <cassert>
#include <cctype>
#include <iostream>
#include <memory>