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
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms