1FcPatternGet-Type(3)                                      FcPatternGet-Type(3)
2
3
4

NAME

6       FcPatternGetInteger,   FcPatternGetDouble,  FcPatternGetString,  FcPat‐
7       ternGetMatrix, FcPatternGetCharSet,  FcPatternGetBool,  FcPatternGetFT‐
8       Face,  FcPatternGetLangSet,  FcPatternGetRange  -  Return a typed value
9       from a pattern
10

SYNOPSIS

12       #include <fontconfig/fontconfig.h>
13
14       FcResult FcPatternGetInteger (FcPattern *p, const char *object, int n, int *i);
15
16       FcResult FcPatternGetDouble (FcPattern *p, const char *object, int n, double *d);
17
18       FcResult FcPatternGetString (FcPattern *p, const char *object, int n, FcChar8 **s);
19
20       FcResult FcPatternGetMatrix (FcPattern *p, const char *object, int n, FcMatrix **s);
21
22       FcResult FcPatternGetCharSet (FcPattern *p, const char *object, int n, FcCharSet **c);
23
24       FcResult FcPatternGetBool (FcPattern *p, const char *object, int n, FcBool *b);
25
26       FcResult FcPatternGetFTFace (FcPattern *p, const char *object, int n, FT_Face *f);
27
28       FcResult FcPatternGetLangSet (FcPattern *p, const char *object, int n, FcLangSet **l);
29
30       FcResult FcPatternGetRange (FcPattern *p, const char *object, int n, FcRange **r);
31

DESCRIPTION

33       These are convenience functions that call FcPatternGet and verify  that
34       the returned data is of the expected type. They return FcResultTypeMis‐
35       match if this is not the case. Note that these (like  FcPatternGet)  do
36       not  make  a copy of any data structure referenced by the return value.
37       Use these in preference to FcPatternGet to provide  compile-time  type‐
38       checking.  FcPatternGetRange are available since 2.11.91.
39
40
41
42Fontconfig 2.13.1                 30 8月 2018             FcPatternGet-Type(3)
Impressum