FcUtf8Len(3)

🌸 NAME 🌸

okay bestie, welcome to FcUtf8Len(3) β€” the page that literally counts UTF-8 encoded chars, no cap πŸ’….


πŸŽ€ SYNOPSIS πŸŽ€

#include <fontconfig/fontconfig.h>

FcBool FcUtf8Len (FcChar8 *src, int len, int *nchar, int *wchar);

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the vibe: FcUtf8Len counts how many Unicode chars are hanging out in len bytes of src, and it places that count into nchar ✨.

Then wchar gets 1, 2, or 4 β€” depending on how many bytes are needed to hold the largest Unicode char it counted πŸ‘‘.

And the return value? It tells you whether src is a well-formed UTF8 string, fr fr πŸ’–.


Fontconfig 2.17.0 Β· 27 June 2025 β€” that’s the source/version and date, bestie, and this page is officially signed off πŸ«ΆπŸŽ€ periodt.

πŸ“¦ where this page comes from