aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/freetype2/src/otlayout/otlparse.h
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
commitf4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch)
tree2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/extras/freetype2/src/otlayout/otlparse.h
parenta840692edc9c6d19cd7c057f68e39c7d95eb767d (diff)
downloadnx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository
Diffstat (limited to 'nx-X11/extras/freetype2/src/otlayout/otlparse.h')
-rw-r--r--nx-X11/extras/freetype2/src/otlayout/otlparse.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/nx-X11/extras/freetype2/src/otlayout/otlparse.h b/nx-X11/extras/freetype2/src/otlayout/otlparse.h
new file mode 100644
index 000000000..92f34bfdc
--- /dev/null
+++ b/nx-X11/extras/freetype2/src/otlayout/otlparse.h
@@ -0,0 +1,99 @@
+#ifndef __OTL_PARSER_H__
+#define __OTL_PARSER_H__
+
+#include "otlayout.h"
+#include "otlgdef.h"
+#include "otlgsub.h"
+#include "otlgpos.h"
+
+OTL_BEGIN_HEADER
+
+ typedef struct OTL_ParserRec_* OTL_Parser;
+
+ typedef struct OTL_StringRec_* OTL_String;
+
+ typedef struct OTL_StringGlyphRec_
+ {
+ OTL_UInt gindex;
+ OTL_UInt properties;
+ OTL_UInt lig_component;
+ OTL_UInt lig_id;
+
+ } OTL_StringGlyphRec, *OTL_StringGlyph;
+
+ typedef struct OTL_StringRec_
+ {
+ OTL_StringGlyph glyphs;
+ OTL_UInt cursor;
+ OTL_UInt length;
+ OTL_UInt capacity;
+
+ } OTL_StringRec;
+
+ typedef struct OTL_ParserRec_
+ {
+ OTL_Bytes tab_gdef;
+ OTL_Bytes tab_gsub;
+ OTL_Bytes tab_gpos;
+ OTL_Bytes tab_base;
+ OTL_Bytes tab_jstf;
+
+ OTL_Alternate alternate; /* external alternate handler */
+
+ OTL_UInt context_len;
+ OTL_UInt markup_flags;
+
+ OTL_jmp_buf jump_buffer;
+ OTL_Memory memory;
+ OTL_Error error;
+
+ OTL_StringRec strings[2];
+ OTL_String str_in;
+ OTL_String str_out;
+
+ } OTL_ParserRec;
+
+ typedef enum
+ {
+ OTL_Err_Parser_Ok = 0,
+ OTL_Err_Parser_InvalidData,
+ OTL_Err_Parser_UncoveredGlyph
+
+ } OTL_ParseError;
+
+ OTL_LOCAL( OTL_UInt )
+ otl_parser_get_gindex( OTL_Parser parser );
+
+
+ OTL_LOCAL( void )
+ otl_parser_error( OTL_Parser parser, OTL_ParserError error );
+
+#define OTL_PARSER_UNCOVERED(x) \
+ otl_parser_error( x, OTL_Err_Parser_UncoveredGlyph )
+
+ OTL_LOCAL( void )
+ otl_parser_check_property( OTL_Parser parser,
+ OTL_UInt gindex,
+ OTL_UInt flags,
+ OTL_UInt *aproperty );
+
+ /* copy current input glyph to output */
+ OTL_LOCAL( void )
+ otl_parser_copy_1( OTL_Parser parser );
+
+ /* copy current input glyph to output, replacing its index */
+ OTL_LOCAL( void )
+ otl_parser_replace_1( OTL_Parser parser,
+ OTL_UInt gindex );
+
+ /* copy current input glyph to output, replacing it by several indices */
+ /* read directly from the table */
+ OTL_LOCAL( void )
+ otl_parser_replace_n( OTL_Parser parser,
+ OTL_UInt count,
+ OTL_Bytes indices );
+
+OTL_END_HEADER
+
+#endif /* __OTL_PARSER_H__ */
+