![]() |
MagickCore
7.0.7
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 |
#define MagickTypeFilename "type.xml" |
Definition at line 106 of file type.c.
Referenced by IsTypeTreeInstantiated().
|
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(), MagickPathExtent, MagickTrue, NewSplayTree(), 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 276 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 323 of file type.c.
References AnyStretch, AnyStyle, _TypeInfo::family, GetMagickModule, GetNextValueInSplayTree(), GetTypeInfo(), ItalicStyle, LocaleCompare(), LockSemaphoreInfo(), MagickMax, MagickMin, NormalStretch, ObliqueStyle, ResetSplayTreeIterator(), _TypeInfo::stretch, _TypeInfo::style, ThrowMagickException(), type_cache, type_semaphore, TypeError, UltraExpandedStretch, UndefinedStretch, UndefinedStyle, UnlockSemaphoreInfo(), and _TypeInfo::weight.
Referenced by RenderType().
MagickExport const TypeInfo** GetTypeInfoList | ( | const char * | pattern, |
size_t * | number_fonts, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 554 of file type.c.
References AcquireQuantumMemory(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetTypeInfo(), GlobExpression(), 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 647 of file type.c.
References AcquireMagickMemory(), AcquireQuantumMemory(), AddValueToSplayTree(), ConcatenateMagickString(), CondensedStretch, ConstantString(), CopyMagickString(), ExpandedStretch, ExtensionPath, ExtraCondensedStretch, ExtraExpandedStretch, _TypeInfo::family, GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetPathComponent(), GetTypeInfo(), GlobExpression(), _TypeInfo::glyphs, ItalicStyle, LocaleCompare(), LockSemaphoreInfo(), LogMagickEvent(), MagickCoreSignature, MagickExport, MagickFalse, MagickPathExtent, MagickTrue, _TypeInfo::name, NormalStretch, NormalStyle, ObliqueStyle, _TypeInfo::path, ResetSplayTreeIterator(), SemiCondensedStretch, SemiExpandedStretch, _TypeInfo::signature, _TypeInfo::stealth, _TypeInfo::stretch, _TypeInfo::style, SubstituteString(), TraceEvent, type_cache, type_semaphore, TypeCompare(), UltraCondensedStretch, UltraExpandedStretch, UnlockSemaphoreInfo(), and _TypeInfo::weight.
|
static |
Definition at line 879 of file type.c.
References AcquireTypeCache(), ActivateSemaphoreInfo(), LockSemaphoreInfo(), MagickFalse, MagickTrue, MagickTypeFilename, NTAcquireTypeCache(), type_semaphore, and UnlockSemaphoreInfo().
Referenced by GetTypeInfo().
MagickExport MagickBooleanType ListTypeInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 929 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 1061 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, IsStringTrue(), 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().
|
inlinestatic |
Definition at line 1024 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 1344 of file type.c.
References AcquireSemaphoreInfo(), MagickTrue, and type_semaphore.
Referenced by MagickCoreGenesis().
MagickPrivate void TypeComponentTerminus | ( | void | ) |
Definition at line 1369 of file type.c.
References ActivateSemaphoreInfo(), DestroySplayTree(), LockSemaphoreInfo(), RelinquishSemaphoreInfo(), type_semaphore, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
|
static |
Definition at line 126 of file type.c.
Referenced by GetTypeInfo(), GetTypeInfoByFamily(), GetTypeInfoList(), and GetTypeList().
|
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().