FcPatternAdd-Type(3)

FcPatternAdd-Type3

Add a typed value to a pattern

Usage

#include <fontconfig/fontconfig.h>

FcBool FcPatternAddInteger (FcPattern *p, const char *object, int i);

FcBool FcPatternAddDouble (FcPattern *p, const char *object, double d);

FcBool FcPatternAddString (FcPattern *p, const char *object, const FcChar8 *s);

FcBool FcPatternAddMatrix (FcPattern *p, const char *object, const FcMatrix *m);

FcBool FcPatternAddCharSet (FcPattern *p, const char *object, const FcCharSet *c);

FcBool FcPatternAddBool (FcPattern *p, const char *object, FcBool b);

FcBool FcPatternAddFTFace (FcPattern *p, const char *object, const FT_Face f);

FcBool FcPatternAddLangSet (FcPattern *p, const char *object, const FcLangSet *l);

FcBool FcPatternAddRange (FcPattern *p, const char *object, const FcRange *r);

Overview

These are all convenience functions that insert objects of the specified type into the pattern. Use these in preference to FcPatternAdd as they will provide compile-time typechecking. These all append values to any existing list of values. FcPatternAddRange are available since 2.11.91.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8–9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

From fontconfig 2:2.18.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.