FcFontRenderPrepare(3)

🌸 NAME 🌸

FcFontRenderPrepare β€” Prepare pattern for loading font file

Okay bestie, welcome to the FcFontRenderPrepare(3) page. This is the little function that gets a pattern ready for loading a font file. πŸŽ€

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

FcPattern * FcFontRenderPrepare (FcConfig *config, FcPattern *pat, FcPattern *font);

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea: FcFontRenderPrepare creates a brand-new pattern. That new pattern is made from three things, and yes bestie, all three matter:

  1. elements of font that do not appear in pat πŸ¦‹
  2. elements of pat that do not appear in font 🌸
  3. the best matching value from pat for elements that appear in both πŸ”₯

Then the result is passed to FcConfigSubstituteWithPat with kind set to FcMatchFont, and after that it's returned. That's the whole vibe. ✨


Mwah πŸ’‹ β€” source/version: Fontconfig 2.17.0, dated 27 June 2025. Bye bestie! 🫢

πŸ“¦ where this page comes from