1. NAME▲
FcPatternGetInteger, FcPatternGetDouble, FcPatternGetString, FcPatternGetMatrix, FcPatternGetCharSet, FcPatternGetBool, FcPatternGetFTFace, FcPatternGetLangSet - Return a typed value from a pattern
2. SYNOPSIS ▲
\fB#include <
fontconfig.h>
FcResult FcPatternGetInteger
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
int
*
\fIi\fB);
FcResult FcPatternGetDouble
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
double
*
\fId\fB);
FcResult FcPatternGetString
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
FcChar8 **
\fIs\fB);
FcResult FcPatternGetMatrix
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
FcMatrix **
\fIs\fB);
FcResult FcPatternGetCharSet
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
FcCharSet **
\fIc\fB);
FcResult FcPatternGetBool
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
(
FcBool *
\fIb\fB);
FcResult FcPatternGetFTFace
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
int
\fIn\fB);
FcResult FcPatternGetLangSet
(
FcPattern *
\fIp\fB);
(
const
char
*
\fIobject\fB);
(
FT_Face *
\fIf\fB);
\fR.fi
3. 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.
4. VERSION ▲
Fontconfig version 2.8.0