FcDefaultSubstitute(3)

🌸 NAME 🌸

FcDefaultSubstitute β€” Perform default substitutions in a pattern. Okay bestie, this is the manual page for FcDefaultSubstitute(3), and it's literally about filling in the blanks when a font pattern is under-specified. πŸ’…βœ¨

✨ SYNOPSIS ✨

#include <fontconfig/fontconfig.h>

void FcDefaultSubstitute (FcPattern *pattern);

πŸŽ€ DESCRIPTION πŸŽ€

So FcDefaultSubstitute supplies default values for underspecified font patterns. Think of it as the friend who shows up with the missing accessory: 🫢

  • Patterns with no specified style or weight get set to Medium, periodt.
  • Patterns with no specified style or slant get set to Roman, slay.
  • Patterns with no specified pixel size get one computed from any specified point size (default 12), dpi (default 75), and scale (default 1).

Heads up, bestie: this function has been replaced by FcConfigSetDefaultSubstitute and will be deprecated. πŸ’€ Not a drill.


Signed, sealed, delivered: Fontconfig 2.17.0, 27 June 2025. πŸ’–βœ¨

πŸ“¦ where this page comes from