2 * Copyright (C) 1998-2004 David Turner and Werner Lemberg
3 * Copyright (C) 2004,2007 Red Hat, Inc.
5 * This is part of HarfBuzz, an OpenType Layout engine library.
7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in
11 * all copies of this software.
13 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
14 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
15 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
16 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
19 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
20 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
22 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
23 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
25 * Red Hat Author(s): Owen Taylor, Behdad Esfahbod
28 #ifndef HARFBUZZ_BUFFER_H
29 #define HARFBUZZ_BUFFER_H
31 #include "harfbuzz-global.h"
35 typedef struct HB_GlyphItemRec_ {
41 HB_UShort gproperties;
42 } HB_GlyphItemRec, *HB_GlyphItem;
44 typedef struct HB_PositionRec_ {
49 HB_UShort back; /* number of glyphs to go back
50 for drawing current glyph */
51 HB_Bool new_advance; /* if set, the advance width values are
52 absolute, i.e., they won't be
53 added to the original glyph's value
54 but rather replace them. */
55 HB_Short cursive_chain; /* character to which this connects,
56 may be positive or negative; used
58 } HB_PositionRec, *HB_Position;
61 typedef struct HB_BufferRec_{
70 HB_GlyphItem in_string;
71 HB_GlyphItem out_string;
72 HB_GlyphItem alt_string;
73 HB_Position positions;
75 } HB_BufferRec, *HB_Buffer;
78 hb_buffer_new( HB_Buffer *buffer );
81 hb_buffer_free( HB_Buffer buffer );
84 hb_buffer_clear( HB_Buffer buffer );
87 hb_buffer_add_glyph( HB_Buffer buffer,
94 #endif /* HARFBUZZ_BUFFER_H */