MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
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

◆ MagickTypeFilename

#define MagickTypeFilename   "type.xml"

Definition at line 106 of file type.c.

Function Documentation

◆ AcquireTypeCache()

◆ DestroyTypeNode()

◆ GetTypeInfo()

MagickExport const TypeInfo * GetTypeInfo ( const char *  name,
ExceptionInfo exception 

◆ GetTypeInfoByFamily()

◆ GetTypeInfoList()

◆ GetTypeList()

◆ IsTypeTreeInstantiated()

◆ ListTypeInfo()

◆ LoadTypeCache()

◆ SetTypeNodePath()

static MagickBooleanType SetTypeNodePath ( const char *  filename,
char *  font_path,
const char *  token,
char **  target 

◆ TypeCompare()

static int TypeCompare ( const void *  x,
const void *  y 

Definition at line 637 of file type.c.

References LocaleCompare().

Referenced by GetTypeList().

◆ TypeComponentGenesis()

MagickPrivate MagickBooleanType TypeComponentGenesis ( void  )

Definition at line 1359 of file type.c.

References AcquireSemaphoreInfo(), MagickTrue, and type_semaphore.

Referenced by MagickCoreGenesis().

◆ TypeComponentTerminus()

◆ TypeInfoCompare()

static int TypeInfoCompare ( const void *  x,
const void *  y 

Definition at line 541 of file type.c.

References LocaleCompare().

Referenced by GetTypeInfoList().

Variable Documentation

◆ type_cache

◆ type_semaphore

◆ TypeMap

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().