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 #ifdef HB_USE_PACKED_STRUCTS
39 typedef struct HB_GlyphItemRec_ {
45 HB_UShort gproperties;
46 } HB_GlyphItemRec, *HB_GlyphItem;
48 typedef struct HB_PositionRec_ {
53 HB_UShort back; /* number of glyphs to go back
54 for drawing current glyph */
55 HB_Short cursive_chain; /* character to which this connects,
56 may be positive or negative; used
58 HB_Bool new_advance; /* if set, the advance width values are
59 absolute, i.e., they won't be
60 added to the original glyph's value
61 but rather replace them. */
62 } HB_PositionRec, *HB_Position;
65 typedef struct HB_BufferRec_{
73 HB_GlyphItem in_string;
74 HB_GlyphItem out_string;
75 HB_GlyphItem alt_string;
76 HB_Position positions;
79 } HB_BufferRec, *HB_Buffer;
82 HB_Buffer_new( HB_Buffer *buffer );
85 HB_Buffer_free( HB_Buffer buffer );
88 HB_Buffer_clear( HB_Buffer buffer );
91 HB_Buffer_add_glyph( HB_Buffer buffer,
96 #ifdef HB_USE_PACKED_STRUCTS
102 #endif /* HARFBUZZ_BUFFER_H */