FcMatrixCopy(3)

✨ FcMatrixCopy(3) ✨

okay so bestie, welcome to the FcMatrixCopy(3) page β€” it lives in the fontconfig family (the Fontconfig 3 section of the manual, iykyk) and honestly? it's a short one. a lil snack. a vibe. let's get into it πŸ’…


🌸 NAME 🌸

FcMatrixCopy β€” literally just copies a matrix, that's the whole personality πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <fontconfig/fontconfig.h>

void FcMatrixCopy (const FcMatrix *matrix);

like, include the header first obviously πŸ™ˆ β€” fontconfig/fontconfig.h β€” and then you've got your one function, void, takes a const FcMatrix * named matrix. no surprises. no plot twists. πŸ’œ


⭐ DESCRIPTION ⭐

so FcMatrixCopy allocates a new FcMatrix (yes, brand new, freshly allocated, main character energy πŸ‘‘) and copies mat into it.

ok tiny heads up because I love you: the manpage straight up says it copies mat into the new matrix, even though the actual parameter in the synopsis is called matrix. same thing, just the docs being a lil quirky 😭 β€” I'm not "fixing" it, I'm telling you exactly what it says 🫢

and that's it. that's the function. short, sweet, slays, periodt. 🌈


πŸ’– a lil sign-off πŸ’–

this iconic little page is from Fontconfig 2.17.0, dated 27 June 2025 β€” so if you're citing it in your notes, that's the version and that's the date, no cap. now go forth and copy those matrices, bestie πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from