FcPatternGetInteger, FcPatternGetDouble, FcPatternGetString, FcPatternGetMatrix, FcPatternGetCharSet,
Contents
Description
These are convenience functions that call FcPatternGet and verify that the returned data is of the
expected type. They return FcResultTypeMismatch if this is not the case. Note that these (like
FcPatternGet) do not make a copy of any data structure referenced by the return value. Use these in
preference to FcPatternGet to provide compile-time typechecking. FcPatternGetRange are available since
2.11.91.
Fontconfig 2.15.0 04 July 2025 FcPatternGet-Type(3)
Name
FcPatternGetInteger, FcPatternGetDouble, FcPatternGetString, FcPatternGetMatrix, FcPatternGetCharSet,
FcPatternGetBool, FcPatternGetFTFace, FcPatternGetLangSet, FcPatternGetRange - Return a typed value from
a pattern
Synopsis
#include<fontconfig/fontconfig.h>FcResultFcPatternGetInteger(FcPattern*p,constchar*object,intn,int*i);FcResultFcPatternGetDouble(FcPattern*p,constchar*object,intn,double*d);FcResultFcPatternGetString(FcPattern*p,constchar*object,intn,FcChar8**s);FcResultFcPatternGetMatrix(FcPattern*p,constchar*object,intn,FcMatrix**s);FcResultFcPatternGetCharSet(FcPattern*p,constchar*object,intn,FcCharSet**c);FcResultFcPatternGetBool(FcPattern*p,constchar*object,intn,FcBool*b);FcResultFcPatternGetFTFace(FcPattern*p,constchar*object,intn,FT_Face*f);FcResultFcPatternGetLangSet(FcPattern*p,constchar*object,intn,FcLangSet**l);FcResultFcPatternGetRange(FcPattern*p,constchar*object,intn,FcRange**r);
