#include "magick/studio.h"#include "magick/blob.h"#include "magick/client.h"#include "magick/configure.h"#include "magick/draw.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/hashmap.h"#include "magick/log.h"#include "magick/memory_.h"#include "magick/option.h"#include "magick/semaphore.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/type.h"#include "magick/token.h"#include "magick/utility.h"#include "magick/xml-tree.h"#include "fontconfig/fontconfig.h"
Go to the source code of this file.
Defines | |
| #define | FC_WIDTH "width" |
| #define | FC_WIDTH_ULTRACONDENSED 50 |
| #define | FC_WIDTH_EXTRACONDENSED 63 |
| #define | FC_WIDTH_CONDENSED 75 |
| #define | FC_WIDTH_SEMICONDENSED 87 |
| #define | FC_WIDTH_NORMAL 100 |
| #define | FC_WIDTH_SEMIEXPANDED 113 |
| #define | FC_WIDTH_EXPANDED 125 |
| #define | FC_WIDTH_EXTRAEXPANDED 150 |
| #define | FC_WIDTH_ULTRAEXPANDED 200 |
| #define | FC_WEIGHT_THIN 0 |
| #define | FC_WEIGHT_EXTRALIGHT 40 |
| #define | FC_WEIGHT_ULTRALIGHT FC_WEIGHT_EXTRALIGHT |
| #define | FC_WEIGHT_LIGHT 50 |
| #define | FC_WEIGHT_BOOK 75 |
| #define | FC_WEIGHT_REGULAR 80 |
| #define | FC_WEIGHT_NORMAL FC_WEIGHT_REGULAR |
| #define | FC_WEIGHT_MEDIUM 100 |
| #define | FC_WEIGHT_DEMIBOLD 180 |
| #define | FC_WEIGHT_SEMIBOLD FC_WEIGHT_DEMIBOLD |
| #define | FC_WEIGHT_BOLD 200 |
| #define | FC_WEIGHT_EXTRABOLD 205 |
| #define | FC_WEIGHT_ULTRABOLD FC_WEIGHT_EXTRABOLD |
| #define | FC_WEIGHT_BLACK 210 |
| #define | FC_WEIGHT_HEAVY FC_WEIGHT_BLACK |
| #define | MagickTypeFilename "type.xml" |
Functions | |
| static MagickBooleanType | InitializeTypeList (ExceptionInfo *) |
| static MagickBooleanType | LoadTypeLists (const char *, ExceptionInfo *) |
| MagickExport const TypeInfo * | GetTypeInfo (const char *name, ExceptionInfo *exception) |
| static unsigned long | MagickMax (const unsigned long x, const unsigned long y) |
| static unsigned long | MagickMin (const unsigned long x, const unsigned long y) |
| MagickExport const TypeInfo * | GetTypeInfoByFamily (const char *family, const StyleType style, const StretchType stretch, const unsigned long weight, ExceptionInfo *exception) |
| static int | TypeInfoCompare (const void *x, const void *y) |
| MagickExport const TypeInfo ** | GetTypeInfoList (const char *pattern, unsigned long *number_fonts, ExceptionInfo *exception) |
| static int | TypeCompare (const void *x, const void *y) |
| MagickExport char ** | GetTypeList (const char *pattern, unsigned long *number_fonts, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | LoadFontConfigFonts (SplayTreeInfo *type_list, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | ListTypeInfo (FILE *file, ExceptionInfo *exception) |
| static void * | DestroyTypeNode (void *type_info) |
| static MagickBooleanType | LoadTypeList (const char *xml, const char *filename, const unsigned long depth, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | TypeComponentGenesis (void) |
| MagickExport void | TypeComponentTerminus (void) |
Variables | |
| static const char * | TypeMap |
| static SemaphoreInfo * | type_semaphore = (SemaphoreInfo *) NULL |
| static volatile MagickBooleanType | instantiate_type = MagickFalse |
| static SplayTreeInfo * | type_list = (SplayTreeInfo *) NULL |
| #define FC_WEIGHT_BLACK 210 |
Definition at line 88 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_BOLD 200 |
Definition at line 85 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_DEMIBOLD 180 |
Definition at line 83 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_EXTRABOLD 205 |
Definition at line 86 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_EXTRALIGHT 40 |
Definition at line 76 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_LIGHT 50 |
Definition at line 78 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_MEDIUM 100 |
Definition at line 82 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_NORMAL FC_WEIGHT_REGULAR |
Definition at line 81 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WEIGHT_THIN 0 |
Definition at line 75 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH "width" |
Definition at line 64 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_CONDENSED 75 |
Definition at line 67 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_EXPANDED 125 |
Definition at line 71 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_EXTRACONDENSED 63 |
Definition at line 66 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_EXTRAEXPANDED 150 |
Definition at line 72 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_NORMAL 100 |
Definition at line 69 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_SEMICONDENSED 87 |
Definition at line 68 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_SEMIEXPANDED 113 |
Definition at line 70 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_ULTRACONDENSED 50 |
Definition at line 65 of file type.c.
Referenced by LoadFontConfigFonts().
| #define FC_WIDTH_ULTRAEXPANDED 200 |
Definition at line 73 of file type.c.
Referenced by LoadFontConfigFonts().
| #define MagickTypeFilename "type.xml" |
Definition at line 99 of file type.c.
Referenced by InitializeTypeList().
| static void* DestroyTypeNode | ( | void * | type_info | ) | [static] |
Definition at line 912 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 LoadTypeList().
| MagickExport const TypeInfo* GetTypeInfo | ( | const char * | name, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 156 of file type.c.
References GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetValueFromSplayTree(), InitializeTypeList(), instantiate_type, LocaleCompare(), MagickFalse, ResetSplayTreeIterator(), and type_list.
Referenced by GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), and RenderType().
| MagickExport const TypeInfo* GetTypeInfoByFamily | ( | const char * | family, | |
| const StyleType | style, | |||
| const StretchType | stretch, | |||
| const unsigned long | weight, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 227 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_list, type_semaphore, TypeError, UltraExpandedStretch, UndefinedStretch, UndefinedStyle, UnlockSemaphoreInfo(), and _TypeInfo::weight.
Referenced by RenderType().
| MagickExport const TypeInfo** GetTypeInfoList | ( | const char * | pattern, | |
| unsigned long * | number_fonts, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 459 of file type.c.
References AcquireQuantumMemory(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetTypeInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _TypeInfo::name, ResetSplayTreeIterator(), _TypeInfo::stealth, TraceEvent, type_list, type_semaphore, TypeInfoCompare(), and UnlockSemaphoreInfo().
Referenced by ListTypeInfo().
| MagickExport char** GetTypeList | ( | const char * | pattern, | |
| unsigned long * | number_fonts, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 552 of file type.c.
References AcquireQuantumMemory(), ConstantString(), GetMagickModule, GetNextValueInSplayTree(), GetNumberOfNodesInSplayTree(), GetTypeInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _TypeInfo::name, ResetSplayTreeIterator(), _TypeInfo::stealth, TraceEvent, type_list, type_semaphore, TypeCompare(), and UnlockSemaphoreInfo().
| static MagickBooleanType InitializeTypeList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 769 of file type.c.
References AcquireSemaphoreInfo(), instantiate_type, LoadFontConfigFonts(), LoadTypeLists(), LockSemaphoreInfo(), MagickFalse, MagickTrue, MagickTypeFilename, NTLoadTypeLists(), type_list, type_semaphore, and UnlockSemaphoreInfo().
Referenced by GetTypeInfo().
| MagickExport MagickBooleanType ListTypeInfo | ( | FILE * | file, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 818 of file type.c.
References _TypeInfo::family, FormatMagickString(), GetTypeInfoList(), _TypeInfo::glyphs, LocaleCompare(), MagickFalse, MagickOptionToMnemonic(), MagickStretchOptions, MagickStyleOptions, MagickTrue, MaxTextExtent, _TypeInfo::name, _TypeInfo::path, and RelinquishMagickMemory().
| MagickExport MagickBooleanType LoadFontConfigFonts | ( | SplayTreeInfo * | type_list, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 622 of file type.c.
References AcquireMagickMemory(), AddValueToSplayTree(), ConcatenateMagickString(), CondensedStretch, ConstantString(), CopyMagickString(), ExpandedStretch, ExtensionPath, ExtraCondensedStretch, ExtraExpandedStretch, _TypeInfo::family, FC_WEIGHT_BLACK, FC_WEIGHT_BOLD, FC_WEIGHT_DEMIBOLD, FC_WEIGHT_EXTRABOLD, FC_WEIGHT_EXTRALIGHT, FC_WEIGHT_LIGHT, FC_WEIGHT_MEDIUM, FC_WEIGHT_NORMAL, FC_WEIGHT_THIN, FC_WIDTH, FC_WIDTH_CONDENSED, FC_WIDTH_EXPANDED, FC_WIDTH_EXTRACONDENSED, FC_WIDTH_EXTRAEXPANDED, FC_WIDTH_NORMAL, FC_WIDTH_SEMICONDENSED, FC_WIDTH_SEMIEXPANDED, FC_WIDTH_ULTRACONDENSED, FC_WIDTH_ULTRAEXPANDED, GetPathComponent(), _TypeInfo::glyphs, ItalicStyle, LocaleCompare(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _TypeInfo::name, NormalStretch, NormalStyle, ObliqueStyle, _TypeInfo::path, ResetMagickMemory(), SemiCondensedStretch, SemiExpandedStretch, _TypeInfo::signature, _TypeInfo::stretch, _TypeInfo::style, SubstituteString(), UltraCondensedStretch, UltraExpandedStretch, and _TypeInfo::weight.
Referenced by InitializeTypeList().
| static MagickBooleanType LoadTypeList | ( | const char * | xml, | |
| const char * | filename, | |||
| const unsigned long | depth, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 939 of file type.c.
References AcquireExceptionInfo(), AcquireMagickMemory(), AcquireString(), AddValueToSplayTree(), CompareSplayTreeString(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), _TypeInfo::description, DestroyExceptionInfo(), DestroyString(), DestroyTypeNode(), DirectorySeparator, _TypeInfo::encoding, _TypeInfo::face, _TypeInfo::family, FileToString(), _TypeInfo::format, _TypeInfo::foundry, GetMagickModule, GetMagickToken(), GetPathComponent(), _TypeInfo::glyphs, HeadPath, IsMagickTrue(), IsPathAccessible(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickStretchOptions, MagickStyleOptions, MagickTrue, MaxTextExtent, _TypeInfo::metrics, _TypeInfo::name, NewSplayTree(), NTGhostscriptFonts(), ParseMagickOption(), _TypeInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _TypeInfo::signature, _TypeInfo::stealth, _TypeInfo::stretch, _TypeInfo::style, SubstituteString(), ThrowFatalException, ThrowFileException, ThrowMagickException(), type_list, and _TypeInfo::weight.
Referenced by LoadTypeLists().
| static MagickBooleanType LoadTypeLists | ( | const char * | filename, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1270 of file type.c.
References CopyMagickString(), DestroyConfigureOptions(), DestroyString(), DirectorySeparator, FileToString(), FormatMagickString(), GetConfigureOptions(), GetEnvironmentValue(), GetNextValueInLinkedList(), GetNumberOfNodesInSplayTree(), GetStringInfoDatum(), GetStringInfoPath(), LoadTypeList(), MagickFalse, MagickTrue, MaxTextExtent, type_list, and TypeMap.
Referenced by InitializeTypeList().
| static unsigned long MagickMax | ( | const unsigned long | x, | |
| const unsigned long | y | |||
| ) | [inline, static] |
Definition at line 211 of file type.c.
Referenced by GetTypeInfoByFamily().
| static unsigned long MagickMin | ( | const unsigned long | x, | |
| const unsigned long | y | |||
| ) | [inline, static] |
Definition at line 219 of file type.c.
Referenced by GetTypeInfoByFamily().
| static int TypeCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
| MagickExport MagickBooleanType TypeComponentGenesis | ( | void | ) |
Definition at line 1345 of file type.c.
References AcquireSemaphoreInfo(), MagickTrue, and type_semaphore.
Referenced by MagickCoreGenesis().
| MagickExport void TypeComponentTerminus | ( | void | ) |
Definition at line 1369 of file type.c.
References AcquireSemaphoreInfo(), DestroySemaphoreInfo(), DestroySplayTree(), instantiate_type, LockSemaphoreInfo(), MagickFalse, type_list, type_semaphore, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
| static int TypeInfoCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
volatile MagickBooleanType instantiate_type = MagickFalse [static] |
Definition at line 119 of file type.c.
Referenced by GetTypeInfo(), InitializeTypeList(), and TypeComponentTerminus().
SplayTreeInfo* type_list = (SplayTreeInfo *) NULL [static] |
Definition at line 122 of file type.c.
Referenced by GetTypeInfo(), GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), InitializeTypeList(), LoadTypeList(), LoadTypeLists(), and TypeComponentTerminus().
SemaphoreInfo* type_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 116 of file type.c.
Referenced by GetTypeInfoByFamily(), GetTypeInfoList(), GetTypeList(), InitializeTypeList(), TypeComponentGenesis(), and TypeComponentTerminus().
const char* TypeMap [static] |
(const char *) "<?xml version=\"1.0\"?>" "<typemap>" " <type stealth=\"True\" name=\"fixed\" family=\"helvetica\"/>" " <type stealth=\"True\" name=\"helvetica\" family=\"helvetica\"/>" "</typemap>"
Definition at line 105 of file type.c.
Referenced by LoadTypeLists().
1.6.1