FcCharSetMerge(3)

πŸ’– FcCharSetMerge(3) πŸ’–

🌸 NAME 🌸

okay bestie, welcome to the FcCharSetMerge(3) manual page! This one is all about FcCharSetMerge β€” Merge charsets. It’s giving β€œcombine two charset besties into one” energy. 🫢

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

FcBool FcCharSetMerge (FcCharSet *a, const FcCharSet *b, FcBool *changed);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the main character move: adds all chars in b to a. Literally all of them, straight into a. πŸ’…

In other words, this is the in-place version of FcCharSetUnion. No new set to carry around β€” a is getting the glow-up. ✨

If changed is not NULL, then it returns whether any new chars from b were added to a. So you can peek at changed and know if the merge actually brought new chars to the party. πŸŽ€

Returns FcFalse on failure, either when a is a constant set or from running out of memory. 😭

no cap, those are the failure cases listed here: constant-set a, or OOM. Keep that in mind, bestie. πŸ’€

mwah πŸ’‹ β€” source/version: Fontconfig 2.17.0 Β· date: 27 June 2025 Β· page: FcCharSetMerge(3). periodt. πŸ‘‘

πŸ“¦ where this page comes from