MagickCore  7.0.3
type.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore image type methods.
17 */
18 #ifndef MAGICKCORE_TYPE_H
19 #define MAGICKCORE_TYPE_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 typedef enum
26 {
38 } StretchType;
39 
40 typedef enum
41 {
48 } StyleType;
49 
50 typedef struct _TypeInfo
51 {
52  size_t
54 
55  char
56  *path,
57  *name,
58  *description,
59  *family;
60 
61  StyleType
63 
66 
67  size_t
69 
70  char
72  *foundry,
73  *format,
74  *metrics,
75  *glyphs;
76 
79 
80  size_t
82 } TypeInfo;
83 
84 extern MagickExport char
85  **GetTypeList(const char *,size_t *,ExceptionInfo *);
86 
88  ListTypeInfo(FILE *,ExceptionInfo *);
89 
90 extern MagickExport const TypeInfo
91  *GetTypeInfo(const char *,ExceptionInfo *),
92  *GetTypeInfoByFamily(const char *,const StyleType,const StretchType,
93  const size_t,ExceptionInfo *),
94  **GetTypeInfoList(const char *,size_t *,ExceptionInfo *);
95 
96 #if defined(__cplusplus) || defined(c_plusplus)
97 }
98 #endif
99 
100 #endif
size_t face
Definition: type.h:53
StyleType
Definition: type.h:40
MagickExport const TypeInfo * GetTypeInfo(const char *name, ExceptionInfo *exception)
Definition: type.c:276
char * description
Definition: type.h:56
char * metrics
Definition: type.h:71
MagickExport MagickBooleanType ListTypeInfo(FILE *file, ExceptionInfo *exception)
Definition: type.c:936
char * path
Definition: type.h:56
size_t weight
Definition: type.h:68
char * foundry
Definition: type.h:71
MagickExport char ** GetTypeList(const char *pattern, size_t *number_fonts, ExceptionInfo *exception)
Definition: type.c:647
MagickBooleanType
Definition: magick-type.h:158
char * family
Definition: type.h:56
StretchType stretch
Definition: type.h:65
StretchType
Definition: type.h:25
char * glyphs
Definition: type.h:71
Definition: type.h:50
char * format
Definition: type.h:71
MagickExport const TypeInfo * GetTypeInfoByFamily(const char *family, const StyleType style, const StretchType stretch, const size_t weight, ExceptionInfo *exception)
Definition: type.c:323
MagickBooleanType stealth
Definition: type.h:78
Definition: type.h:47
MagickExport const TypeInfo ** GetTypeInfoList(const char *pattern, size_t *number_fonts, ExceptionInfo *exception)
Definition: type.c:554
struct _TypeInfo TypeInfo
Definition: type.h:46
char * encoding
Definition: type.h:71
size_t signature
Definition: type.h:81
#define MagickExport
StyleType style
Definition: type.h:62
char * name
Definition: type.h:56