FcUtf8ToUcs4(3)

💖 NAME 💖

FcUtf8ToUcs4 — convert UTF-8 to UCS4. This is the fontconfig manual page for it, bestie, and it’s giving “tiny but crucial” energy. 💅


✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

int FcUtf8ToUcs4 (FcChar8 *src, FcChar32 *dst, int len);

🦋 DESCRIPTION 🦋

Okay so this function grabs the next Unicode char from src, drops it into dst, and returns the number of bytes containing the char. That’s the whole vibe. ✨

src must be at least len bytes long — periodt, that’s the rule. src is your FcChar8 *, dst is your FcChar32 *, and len is the byte count you’re promising. 🫶

Bestie warning: keep src at least len bytes long. This page says it plainly, and we are not gonna pretend otherwise. 💀

Mwah 💋 — this page is from Fontconfig 2.17.0, dated 27 June 2025, and it’s the FcUtf8ToUcs4(3) manual page. Slay. 🎀

📦 where this page comes from