MagickCore  7.0.10
type.c File Reference
Include dependency graph for type.c:

Go to the source code of this file.


#define MagickTypeFilename   "type.xml"


static MagickBooleanType IsTypeTreeInstantiated (ExceptionInfo *)
static MagickBooleanType LoadTypeCache (SplayTreeInfo *, const char *, const char *, const size_t, ExceptionInfo *)
static void * DestroyTypeNode (void *type_info)
static SplayTreeInfoAcquireTypeCache (const char *filename, ExceptionInfo *exception)
MagickExport const TypeInfoGetTypeInfo (const char *name, ExceptionInfo *exception)
MagickExport const TypeInfoGetTypeInfoByFamily (const char *family, const StyleType style, const StretchType stretch, const size_t weight, ExceptionInfo *exception)
static int TypeInfoCompare (const void *x, const void *y)
MagickExport const TypeInfo ** GetTypeInfoList (const char *pattern, size_t *number_fonts, ExceptionInfo *exception)
static int TypeCompare (const void *x, const void *y)
MagickExport char ** GetTypeList (const char *pattern, size_t *number_fonts, ExceptionInfo *exception)
MagickExport MagickBooleanType ListTypeInfo (FILE *file, ExceptionInfo *exception)
static MagickBooleanType SetTypeNodePath (const char *filename, char *font_path, const char *token, char **target)
MagickPrivate MagickBooleanType TypeComponentGenesis (void)
MagickPrivate void TypeComponentTerminus (void)


static const char TypeMap []
static SemaphoreInfotype_semaphore = (SemaphoreInfo *) NULL
static SplayTreeInfotype_cache = (SplayTreeInfo *) NULL

Macro Definition Documentation

#define MagickTypeFilename   "type.xml"

Definition at line 106 of file type.c.

Referenced by IsTypeTreeInstantiated().

Function Documentation

MagickExport const TypeInfo* GetTypeInfo ( const char *  name,
ExceptionInfo exception 
static MagickBooleanType SetTypeNodePath ( const char *  filename,
char *  font_path,
const char *  token,
char **  target 
static int TypeCompare ( const void *  x,
const void *  y 

Definition at line 630 of file type.c.

References LocaleCompare().

Referenced by GetTypeList().

MagickPrivate MagickBooleanType TypeComponentGenesis ( void  )

Definition at line 1349 of file type.c.

References AcquireSemaphoreInfo(), MagickTrue, and type_semaphore.

Referenced by MagickCoreGenesis().

MagickPrivate void TypeComponentTerminus ( void  )
static int TypeInfoCompare ( const void *  x,
const void *  y 

Definition at line 535 of file type.c.

References LocaleCompare().

Referenced by GetTypeInfoList().

Variable Documentation

SplayTreeInfo* type_cache = (SplayTreeInfo *) NULL

Definition at line 126 of file type.c.

Referenced by GetTypeInfo(), GetTypeInfoByFamily(), GetTypeInfoList(), and GetTypeList().

const char TypeMap[]
Initial value:
"<?xml version=\"1.0\"?>"
" <type stealth=\"True\" name=\"fixed\" family=\"helvetica\"/>"
" <type stealth=\"True\" name=\"helvetica\" family=\"helvetica\"/>"

Definition at line 112 of file type.c.

Referenced by AcquireTypeCache().