contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / test / arabic.h
blob0e9fe05325512d3089d450a581af88627fa4244e
1 /****************************************************************************/
2 /* */
3 /* The FreeType project -- a free and portable quality TrueType renderer. */
4 /* */
5 /* Copyright 1996-1999 by */
6 /* D. Turner, R.Wilhelm, and W. Lemberg */
7 /* */
8 /* arabic -- An implementation of the contextual algorithm given in the */
9 /* Unicode 2.0 book to assign the `isolated', `initial', `medial', and */
10 /* `final' properties to an input string of character codes for the Arabic */
11 /* script. */
12 /* */
13 /****************************************************************************/
16 #include "freetype.h"
17 #include "ftxopen.h"
20 enum joining_type_
22 isolated = 1, /* nominal */
23 final = 2, /* right_joining */
24 initial = 4, /* left_joining */
25 medial = 8 /* double_joining */
28 typedef enum joining_type_ joining_type;
31 /* A glyph's property value as needed by e.g. TT_GSUB_Apply_String()
32 specifies which features should *not* be applied */
34 enum arabic_glyph_property_
36 isolated_p = final | initial | medial,
37 final_p = isolated | initial | medial,
38 initial_p = isolated | final | medial,
39 medial_p = isolated | final | initial
42 typedef enum arabic_glyph_property_ arabic_glyph_property;
45 enum joining_class_
47 right,
48 left, /* not used */
49 dual,
50 causing,
51 none,
52 transparent
55 typedef enum joining_class_ joining_class;
58 TT_Error Assign_Arabic_Properties( TT_UShort* string,
59 TT_UShort* properties,
60 TT_UShort length );
61 TT_Error Build_Arabic_Glyph_Properties( TT_CharMap char_map,
62 TT_UShort max_glyphs,
63 TTO_GDEFHeader** gdef );
66 /* End */