Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

FcPatternGet-Type (3)

Name

FcPatternGet-Type - ternGetMatrix, FcPatternGetCharSet, FcPatternGetBool, FcPatternGetFT- Face, FcPatternGetLangSet, FcPatternGetRange - Return a typed value from a pattern

Synopsis

#include <fontconfig/fontconfig.h>

FcResult FcPatternGetInteger (FcPattern *p, const char *object, int n, int *i);

FcResult FcPatternGetDouble (FcPattern *p, const char *object, int n, double *d);

FcResult FcPatternGetString (FcPattern *p, const char *object, int n, FcChar8 **s);

FcResult FcPatternGetMatrix (FcPattern *p, const char *object, int n, FcMatrix **s);

FcResult FcPatternGetCharSet (FcPattern *p, const char *object, int n, FcCharSet **c);

FcResult FcPatternGetBool (FcPattern *p, const char *object, int n, FcBool *b);

FcResult FcPatternGetFTFace (FcPattern *p, const char *object, int n, FT_Face *f);

FcResult FcPatternGetLangSet (FcPattern *p, const char *object, int n, FcLangSet **l);

FcResult FcPatternGetRange (FcPattern *p, const char *object, int n, FcRange **r);

Description

FcPatternGet-Type(3)                                      FcPatternGet-Type(3)



NAME
       FcPatternGetInteger,   FcPatternGetDouble,  FcPatternGetString,  FcPat-
       ternGetMatrix, FcPatternGetCharSet,  FcPatternGetBool,  FcPatternGetFT-
       Face,  FcPatternGetLangSet,  FcPatternGetRange  -  Return a typed value
       from a pattern

SYNOPSIS
       #include <fontconfig/fontconfig.h>

       FcResult FcPatternGetInteger (FcPattern *p, const char *object, int n, int *i);

       FcResult FcPatternGetDouble (FcPattern *p, const char *object, int n, double *d);

       FcResult FcPatternGetString (FcPattern *p, const char *object, int n, FcChar8 **s);

       FcResult FcPatternGetMatrix (FcPattern *p, const char *object, int n, FcMatrix **s);

       FcResult FcPatternGetCharSet (FcPattern *p, const char *object, int n, FcCharSet **c);

       FcResult FcPatternGetBool (FcPattern *p, const char *object, int n, FcBool *b);

       FcResult FcPatternGetFTFace (FcPattern *p, const char *object, int n, FT_Face *f);

       FcResult FcPatternGetLangSet (FcPattern *p, const char *object, int n, FcLangSet **l);

       FcResult FcPatternGetRange (FcPattern *p, const char *object, int n, FcRange **r);

DESCRIPTION
       These are convenience functions that call FcPatternGet and verify  that
       the returned data is of the expected type. They return FcResultTypeMis-
       match 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  type-
       checking.  FcPatternGetRange are available since 2.11.91.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+---------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE       |
       +---------------+---------------------------+
       |Availability   | system/library/fontconfig |
       +---------------+---------------------------+
       |Stability      | Volatile                  |
       +---------------+---------------------------+

NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source  was  downloaded  from   https://fontconfig.org/release/fontcon-
       fig-2.14.0.tar.xz.

       Further information about this software can be found on the open source
       community website at https://fontconfig.org/.



Fontconfig 2.14.0                  31 3 2022              FcPatternGet-Type(3)