summaryrefslogtreecommitdiff
path: root/src/otlayout/otdriver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otlayout/otdriver.c')
-rw-r--r--src/otlayout/otdriver.c100
1 files changed, 100 insertions, 0 deletions
diff --git a/src/otlayout/otdriver.c b/src/otlayout/otdriver.c
new file mode 100644
index 000000000..128c7274b
--- /dev/null
+++ b/src/otlayout/otdriver.c
@@ -0,0 +1,100 @@
+/***************************************************************************/
+/* */
+/* otdriver.c */
+/* */
+/* High-level OpenType driver interface (body). */
+/* */
+/* Copyright 2003 by */
+/* Masatake YAMATO and Redhat K.K. */
+/* */
+/* This file may only be used, */
+/* modified, and distributed under the terms of the FreeType project */
+/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
+/* this file you indicate that you have read the license and */
+/* understand and accept it fully. */
+/* */
+/***************************************************************************/
+
+/***************************************************************************/
+/* Development of the code in this file is support of */
+/* Information-technology Promotion Agency, Japan. */
+/***************************************************************************/
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+#include FT_INTERNAL_DEBUG_H
+#include "otdriver.h"
+#include "otobjs.h"
+
+ /*************************************************************************/
+ /* */
+ /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
+ /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
+ /* messages during execution. */
+ /* */
+#undef FT_COMPONENT
+#define FT_COMPONENT trace_otdriver
+
+ /* The FT_DriverInterface structure is defined in ftdriver.h.
+ * -----------------------------------------------------------------------
+ * Almost all fields should be initialized in ot_driver_init.
+ */
+
+ FT_CALLBACK_TABLE_DEF
+ const FT_Driver_ClassRec ot_driver_class =
+ {
+ /* FT_Module_Class */
+ {
+ /* module_flags, copyied from ttdriver.c */
+ FT_MODULE_FONT_DRIVER |
+ FT_MODULE_DRIVER_SCALABLE |
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+ FT_MODULE_DRIVER_HAS_HINTER,
+#else
+ 0,
+#endif
+ /* module_size, copyied from ttdriver.c */
+ sizeof (OT_DriverRec),
+ /* module_name */
+ "ot",
+ /* module_version */
+ 0x10000L,
+ /* module_requires */
+ 0x20000L,
+
+ /* module_interface */
+ NULL,
+
+ /* module_init */
+ (FT_Module_Constructor) ot_driver_init,
+
+ /* module_done */
+ (FT_Module_Destructor) NULL,
+
+ /* get_interface */
+ (FT_Module_Requester) NULL,
+ },
+
+ /* now the specific driver fields */
+ 0,
+ 0,
+ 0,
+
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+
+ NULL,
+ NULL,
+
+ NULL,
+
+ NULL,
+ NULL,
+ NULL,
+ };
+
+/* END */