summaryrefslogtreecommitdiff
path: root/dmagick/c/type.d
blob: 4006d065e7ddf10af650bc259b0f82b9b91e84d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module dmagick.c.type;

import core.stdc.stdio;

import dmagick.c.exception;
import dmagick.c.magickType;

extern(C)
{
	/**
	 * This setting suggests a type of stretch that ImageMagick should try
	 * to apply to the currently selected font family.
	 */
	enum StretchType
	{
		UndefinedStretch,       ///
		NormalStretch,          /// ditto
		UltraCondensedStretch,  /// ditto
		ExtraCondensedStretch,  /// ditto
		CondensedStretch,       /// ditto
		SemiCondensedStretch,   /// ditto
		SemiExpandedStretch,    /// ditto
		ExpandedStretch,        /// ditto
		ExtraExpandedStretch,   /// ditto
		UltraExpandedStretch,   /// ditto
		AnyStretch              /// ditto
	}

	/**
	 * This setting suggests a font style that ImageMagick should try to
	 * apply to the currently selected font family.
	 */
	enum StyleType
	{
		UndefinedStyle,  ///
		NormalStyle,     /// ditto
		ItalicStyle,     /// ditto
		ObliqueStyle,    /// ditto
		AnyStyle         /// ditto
	}

	struct TypeInfo
	{
		size_t
			face;

		char*
			path,
			name,
			description,
			family;

		StyleType
			style;

		StretchType
			stretch;

		size_t
			weight;

		char*
			encoding,
			foundry,
			format,
			metrics,
			glyphs;

		MagickBooleanType
			stealth;

		TypeInfo*
			previous,
			next;

		size_t
			signature;
	}

	char** GetTypeList(const(char)*, size_t*, ExceptionInfo*);

	MagickBooleanType ListTypeInfo(FILE*, ExceptionInfo*);
	MagickBooleanType TypeComponentGenesis();

	const(TypeInfo)*  GetTypeInfo(const(char)*, ExceptionInfo*);
	const(TypeInfo)*  GetTypeInfoByFamily(const(char)*, const StyleType, const StretchType, const size_t, ExceptionInfo*);
	const(TypeInfo)** GetTypeInfoList(const(char)*, size_t*, ExceptionInfo*);

	void TypeComponentTerminus();
}