MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/image-private.h"
#include "MagickCore/linked-list.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/nt-feature.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/splay-tree.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/type.h"
#include "MagickCore/type-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
Go to the source code of this file.
Macros | |
#define | MagickTypeFilename "type.xml" |
Functions | |
static MagickBooleanType | IsTypeTreeInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadTypeCache (SplayTreeInfo *, const char *, const char *, const size_t, ExceptionInfo *) |
static void * | DestroyTypeNode (void *type_info) |
static SplayTreeInfo * | AcquireTypeCache (const char *filename, ExceptionInfo *exception) |
MagickExport const TypeInfo * | GetTypeInfo (const char *name, ExceptionInfo *exception) |
MagickExport const TypeInfo * | GetTypeInfoByFamily (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) |
Variables | |
static const char | TypeMap [] |
static SemaphoreInfo * | type_semaphore = (SemaphoreInfo *) NULL |
static SplayTreeInfo * | type_cache = (SplayTreeInfo *) NULL |
|
static |
Definition at line 190 of file type.c.
References CompareSplayTreeString(), CopyMagickString(), DestroyConfigureOptions(), DestroyString(), DestroyTypeNode(), DirectorySeparator, FileToString(), FormatLocaleString(), GetConfigureOptions(), GetEnvironmentValue(), GetNextValueInLinkedList(), GetNumberOfNodesInSplayTree(), GetStringInfoDatum(), GetStringInfoPath(), LoadTypeCache(), magick_unreferenced, MagickFalse, MagickPathExtent, MagickTrue, NewSplayTree(), ResourceLimitFatalError, ThrowFatalException, and TypeMap.
Referenced by IsTypeTreeInstantiated().
|
static |
Definition at line 163 of file type.c.
References _TypeInfo::description, DestroyString(), _TypeInfo::encoding, _TypeInfo::family, _TypeInfo::format, _TypeInfo::foundry, _TypeInfo::glyphs, _TypeInfo::metrics, _TypeInfo::name, _TypeInfo::path, and RelinquishMagickMemory().
Referenced by AcquireTypeCache(), and LoadTypeCache().
MagickExport const TypeInfo * GetTypeInfo | ( | const char * | name, |
ExceptionInfo * | exception | ||
) |
Definition at line 282 of file type.c.
References GetRootValueFromSplayTree(), GetValueFromSplayTree(), IsTypeTreeInstantiated(), LocaleCompare(), MagickFalse, and type_cache.
Referenced by GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), and RenderType().
MagickExport const TypeInfo * GetTypeInfoByFamily | ( | const char * | family, |
const StyleType | style, | ||
const StretchType | stretch, | ||
const size_t | weight, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 328 of file type.c.
References AnyStretch, AnyStyle, _TypeInfo::family, GetMagickModule, GetNextValueInSplayTree(), GetTypeInfo(), GetTypeInfoByFamily(), ItalicStyle, LocaleCompare(), LockSemaphoreInfo(), MagickMax, MagickMin, NormalStretch, ObliqueStyle, ResetSplayTreeIterator(), _TypeInfo::stretch, _TypeInfo::style, ThrowMagickException(), type_cache, type_semaphore, TypeWarning, UltraExpandedStretch, UndefinedStretch, UndefinedStyle, UnlockSemaphoreInfo(), and _TypeInfo::weight.
Referenced by GetTypeInfoByFamily(), and RenderType().
MagickExport const TypeInfo ** GetTypeInfoList | ( | const char * | pattern, |
size_t * | number_fonts, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 558 of file type.c.
References AcquireQuantumMemory(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetTypeInfo(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _TypeInfo::name, ResetSplayTreeIterator(), _TypeInfo::stealth, TraceEvent, type_cache, type_semaphore, TypeInfoCompare(), and UnlockSemaphoreInfo().
Referenced by ListTypeInfo().
MagickExport char ** GetTypeList | ( | const char * | pattern, |
size_t * | number_fonts, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 652 of file type.c.
References AcquireQuantumMemory(), ConstantString(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetTypeInfo(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _TypeInfo::name, ResetSplayTreeIterator(), _TypeInfo::stealth, TraceEvent, type_cache, type_semaphore, TypeCompare(), and UnlockSemaphoreInfo().
|
static |
Definition at line 892 of file type.c.
References AcquireTypeCache(), ActivateSemaphoreInfo(), LockSemaphoreInfo(), MagickFalse, MagickTrue, MagickTypeFilename, NTAcquireTypeCache(), type_cache, type_semaphore, and UnlockSemaphoreInfo().
Referenced by GetTypeInfo().
MagickExport MagickBooleanType ListTypeInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 942 of file type.c.
References CommandOptionToMnemonic(), _TypeInfo::family, FormatLocaleFile(), FormatLocaleString(), GetTypeInfoList(), _TypeInfo::glyphs, LocaleCompare(), MagickFalse, MagickPathExtent, MagickStretchOptions, MagickStyleOptions, MagickTrue, _TypeInfo::name, _TypeInfo::path, RelinquishMagickMemory(), and _TypeInfo::weight.
static MagickBooleanType LoadTypeCache | ( | SplayTreeInfo * | cache, |
const char * | xml, | ||
const char * | filename, | ||
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1074 of file type.c.
References AcquireCriticalMemory(), AcquireExceptionInfo(), AcquireString(), AddValueToSplayTree(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), _TypeInfo::description, DestroyExceptionInfo(), DestroyTypeNode(), DirectorySeparator, _TypeInfo::encoding, _TypeInfo::face, _TypeInfo::family, FileToString(), _TypeInfo::format, _TypeInfo::foundry, GetMagickModule, GetNextToken(), GetPathComponent(), _TypeInfo::glyphs, HeadPath, IsEventLogging(), IsStringTrue(), LoadTypeCache(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickStretchOptions, MagickStyleOptions, MagickTrue, MagickWeightOptions, _TypeInfo::metrics, _TypeInfo::name, ParseCommandOption(), _TypeInfo::path, RelinquishMagickMemory(), ResourceLimitError, SetTypeNodePath(), _TypeInfo::signature, _TypeInfo::stealth, _TypeInfo::stretch, StringToUnsignedLong(), _TypeInfo::style, ThrowMagickException(), and _TypeInfo::weight.
Referenced by AcquireTypeCache(), and LoadTypeCache().
|
inlinestatic |
Definition at line 1037 of file type.c.
References ConcatenateMagickString(), ConstantString(), DestroyString(), DirectorySeparator, GetPathComponent(), HeadPath, IsPathAccessible(), MagickFalse, MagickPathExtent, MagickTrue, and SubstituteString().
Referenced by LoadTypeCache().
|
static |
MagickPrivate MagickBooleanType TypeComponentGenesis | ( | void | ) |
Definition at line 1359 of file type.c.
References AcquireSemaphoreInfo(), MagickTrue, and type_semaphore.
Referenced by MagickCoreGenesis().
MagickPrivate void TypeComponentTerminus | ( | void | ) |
Definition at line 1384 of file type.c.
References ActivateSemaphoreInfo(), DestroySplayTree(), LockSemaphoreInfo(), RelinquishSemaphoreInfo(), type_cache, type_semaphore, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
|
static |
Definition at line 126 of file type.c.
Referenced by GetTypeInfo(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), IsTypeTreeInstantiated(), and TypeComponentTerminus().
|
static |
Definition at line 123 of file type.c.
Referenced by GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), IsTypeTreeInstantiated(), TypeComponentGenesis(), and TypeComponentTerminus().
|
static |
Definition at line 112 of file type.c.
Referenced by AcquireTypeCache().