FcUcs4ToUtf8(3)

✨ NAME ✨

FcUcs4ToUtf8 β€” convert UCS4 to UTF-8

okay bestie, welcome to the FcUcs4ToUtf8(3) manual page πŸ’… this one is short and sweet, and it does exactly what it says on the label: UCS4 in, UTF-8 out, no cap.


πŸŽ€ SYNOPSIS πŸŽ€

#include <fontconfig/fontconfig.h>

int FcUcs4ToUtf8 (FcChar32 src, FcChar8 dst[FC_UTF8_MAX_LEN]);

πŸ¦‹ DESCRIPTION πŸ¦‹

Converts the Unicode char from src into dst and returns the number of bytes needed to encode the char ✨

that’s the whole vibe. src is your Unicode char (a FcChar32), dst is where the encoded bytes land (a FcChar8 dst[FC_UTF8_MAX_LEN]), and the return value is literally the number of bytes needed to encode the char β€” iconic, useful, and straight to the point 🫢

fr fr, that return number is the byte count you need. don’t sleep on it πŸ’–

mwah πŸ’‹ stay encoded, bestie β€” this page is from Fontconfig 2.17.0, dated 27 June 2025. periodt 🌸

πŸ“¦ where this page comes from