Vanilla.PDF  1.6.0
Cross-platform toolkit for creating and modifying PDF documents
c_font.h
Go to the documentation of this file.
1#ifndef _C_FONT_H
2#define _C_FONT_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
42 typedef enum {
43 FontType_Undefined = 0,
44
50
56 FontType_MMType1,
57
63 FontType_TrueType,
64 FontType_CIDFontType0,
65 FontType_CIDFontType2
66 } FontType;
67
76 VANILLAPDF_API error_type CALLING_CONVENTION Font_CreateFromObject(DictionaryObjectHandle* handle, FontHandle** result);
77
81 VANILLAPDF_API error_type CALLING_CONVENTION Font_GetFontType(FontHandle* handle, FontType* result);
82
86 VANILLAPDF_API error_type CALLING_CONVENTION Font_ToUnknown(FontHandle* handle, IUnknownHandle** result);
87
91 VANILLAPDF_API error_type CALLING_CONVENTION Font_FromUnknown(IUnknownHandle* handle, FontHandle** result);
92
97 VANILLAPDF_API error_type CALLING_CONVENTION Font_Release(FontHandle* handle);
98
111 VANILLAPDF_API error_type CALLING_CONVENTION Type0Font_GetUnicodeMap(Type0FontHandle* handle, UnicodeCharacterMapHandle** result);
112
116 VANILLAPDF_API error_type CALLING_CONVENTION Type0Font_ToFont(Type0FontHandle* handle, FontHandle** result);
117
121 VANILLAPDF_API error_type CALLING_CONVENTION Type0Font_FromFont(FontHandle* handle, Type0FontHandle** result);
122
126 VANILLAPDF_API error_type CALLING_CONVENTION Type0Font_Release(Type0FontHandle* handle);
127
130#ifdef __cplusplus
131};
132#endif
133
134#endif /* _C_FONT_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
A dictionary object is an associative table containing pairs of objects.
Base class for all fonts in to representable inside a PDF document.
error_type CALLING_CONVENTION Font_CreateFromObject(DictionaryObjectHandle *handle, FontHandle **result)
Create new font object from the specified dictionary.
error_type CALLING_CONVENTION Font_FromUnknown(IUnknownHandle *handle, FontHandle **result)
Convert IUnknownHandle to FontHandle.
error_type CALLING_CONVENTION Font_ToUnknown(FontHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION Font_GetFontType(FontHandle *handle, FontType *result)
Get derived type of current object.
error_type CALLING_CONVENTION Font_Release(FontHandle *handle)
Decrement the internal reference counter.
Base class for reference counting.
A font composed of glyphs from a descendant CIDFont.
error_type CALLING_CONVENTION Type0Font_ToFont(Type0FontHandle *handle, FontHandle **result)
Reinterpret current object as FontHandle.
error_type CALLING_CONVENTION Type0Font_FromFont(FontHandle *handle, Type0FontHandle **result)
Convert ObjectHandle to Type0FontHandle.
error_type CALLING_CONVENTION Type0Font_GetUnicodeMap(Type0FontHandle *handle, UnicodeCharacterMapHandle **result)
A stream containing a CMap file that maps character codes to Unicode values (see 9....
error_type CALLING_CONVENTION Type0Font_Release(Type0FontHandle *handle)
Decrement the internal reference counter.
The Unicode standard defines a system for numbering all of the common characters used in a large numb...
FontType
Types of fonts.
Definition: c_font.h:42
@ FontType_Type0
A font composed of glyphs from a descendant CIDFont.
Definition: c_font.h:49
@ FontType_Type3
A font that defines glyphs with streams of PDF graphics operators.
Definition: c_font.h:62
@ FontType_Type1
A font that defines glyph shapes using Type 1 font technology.
Definition: c_font.h:55
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25