| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998-2004 David Turner and Werner Lemberg | 2 * Copyright (C) 1998-2004 David Turner and Werner Lemberg |
| 3 * Copyright (C) 2004,2007 Red Hat, Inc. | 3 * Copyright (C) 2004,2007 Red Hat, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, an OpenType Layout engine library. | 5 * This is part of HarfBuzz, an OpenType Layout engine library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * Red Hat Author(s): Owen Taylor, Behdad Esfahbod | 25 * Red Hat Author(s): Owen Taylor, Behdad Esfahbod |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef HARFBUZZ_BUFFER_H | 28 #ifndef HARFBUZZ_BUFFER_H |
| 29 #define HARFBUZZ_BUFFER_H | 29 #define HARFBUZZ_BUFFER_H |
| 30 | 30 |
| 31 #include "harfbuzz-global.h" | 31 #include "harfbuzz-global.h" |
| 32 | 32 |
| 33 HB_BEGIN_HEADER | 33 HB_BEGIN_HEADER |
| 34 | 34 |
| 35 #ifdef HB_USE_PACKED_STRUCTS |
| 36 #pragma pack(push, 1) |
| 37 #endif |
| 38 |
| 35 typedef struct HB_GlyphItemRec_ { | 39 typedef struct HB_GlyphItemRec_ { |
| 36 HB_UInt gindex; | 40 HB_UInt gindex; |
| 37 HB_UInt properties; | 41 HB_UInt properties; |
| 38 HB_UInt cluster; | 42 HB_UInt cluster; |
| 39 HB_UShort component; | 43 HB_UShort component; |
| 40 HB_UShort ligID; | 44 HB_UShort ligID; |
| 41 HB_UShort gproperties; | 45 HB_UShort gproperties; |
| 42 } HB_GlyphItemRec, *HB_GlyphItem; | 46 } HB_GlyphItemRec, *HB_GlyphItem; |
| 43 | 47 |
| 44 typedef struct HB_PositionRec_ { | 48 typedef struct HB_PositionRec_ { |
| 45 HB_Fixed x_pos; | 49 HB_Fixed x_pos; |
| 46 HB_Fixed y_pos; | 50 HB_Fixed y_pos; |
| 47 HB_Fixed x_advance; | 51 HB_Fixed x_advance; |
| 48 HB_Fixed y_advance; | 52 HB_Fixed y_advance; |
| 49 HB_UShort back; /* number of glyphs to go back | 53 HB_UShort back; /* number of glyphs to go back |
| 50 for drawing current glyph */ | 54 for drawing current glyph */ |
| 55 HB_Short cursive_chain; /* character to which this connects, |
| 56 may be positive or negative; used |
| 57 only internally */ |
| 51 HB_Bool new_advance; /* if set, the advance width values are | 58 HB_Bool new_advance; /* if set, the advance width values are |
| 52 absolute, i.e., they won't be | 59 absolute, i.e., they won't be |
| 53 added to the original glyph's value | 60 added to the original glyph's value |
| 54 but rather replace them. */ | 61 but rather replace them. */ |
| 55 HB_Short cursive_chain; /* character to which this connects, | |
| 56 may be positive or negative; used | |
| 57 only internally */ | |
| 58 } HB_PositionRec, *HB_Position; | 62 } HB_PositionRec, *HB_Position; |
| 59 | 63 |
| 60 | 64 |
| 61 typedef struct HB_BufferRec_{ | 65 typedef struct HB_BufferRec_{ |
| 62 HB_UInt allocated; | 66 HB_UInt allocated; |
| 63 | 67 |
| 64 HB_UInt in_length; | 68 HB_UInt in_length; |
| 65 HB_UInt out_length; | 69 HB_UInt out_length; |
| 66 HB_UInt in_pos; | 70 HB_UInt in_pos; |
| 67 HB_UInt out_pos; | 71 HB_UInt out_pos; |
| 68 | 72 |
| 69 HB_Bool separate_out; | |
| 70 HB_GlyphItem in_string; | 73 HB_GlyphItem in_string; |
| 71 HB_GlyphItem out_string; | 74 HB_GlyphItem out_string; |
| 72 HB_GlyphItem alt_string; | 75 HB_GlyphItem alt_string; |
| 73 HB_Position positions; | 76 HB_Position positions; |
| 74 HB_UShort max_ligID; | 77 HB_UShort max_ligID; |
| 78 HB_Bool separate_out; |
| 75 } HB_BufferRec, *HB_Buffer; | 79 } HB_BufferRec, *HB_Buffer; |
| 76 | 80 |
| 77 HB_Error | 81 HB_Error |
| 78 hb_buffer_new( HB_Buffer *buffer ); | 82 hb_buffer_new( HB_Buffer *buffer ); |
| 79 | 83 |
| 80 void | 84 void |
| 81 hb_buffer_free( HB_Buffer buffer ); | 85 hb_buffer_free( HB_Buffer buffer ); |
| 82 | 86 |
| 83 void | 87 void |
| 84 hb_buffer_clear( HB_Buffer buffer ); | 88 hb_buffer_clear( HB_Buffer buffer ); |
| 85 | 89 |
| 86 HB_Error | 90 HB_Error |
| 87 hb_buffer_add_glyph( HB_Buffer buffer, | 91 hb_buffer_add_glyph( HB_Buffer buffer, |
| 88 HB_UInt glyph_index, | 92 HB_UInt glyph_index, |
| 89 HB_UInt properties, | 93 HB_UInt properties, |
| 90 HB_UInt cluster ); | 94 HB_UInt cluster ); |
| 91 | 95 |
| 96 #ifdef HB_USE_PACKED_STRUCTS |
| 97 #pragma pack(pop) |
| 98 #endif |
| 99 |
| 92 HB_END_HEADER | 100 HB_END_HEADER |
| 93 | 101 |
| 94 #endif /* HARFBUZZ_BUFFER_H */ | 102 #endif /* HARFBUZZ_BUFFER_H */ |
| OLD | NEW |