mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
[OT] Match struct with HB's
This commit is contained in:
1 parent
11fbb5487d
commit
6d5bb18e93
3 files changed
+10
-10
No files matched your search
+3
-3
@@ -172,7 +172,7 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
|
||||
glyph->cluster = cluster;
|
||||
glyph->component = 0;
|
||||
glyph->ligID = 0;
|
||||
glyph->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
glyph->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
|
||||
buffer->in_length++;
|
||||
}
|
||||
@@ -285,7 +285,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
|
||||
info->cluster = cluster;
|
||||
info->component = component;
|
||||
info->ligID = ligID;
|
||||
info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
}
|
||||
|
||||
buffer->in_pos += num_in;
|
||||
@@ -316,7 +316,7 @@ _hb_buffer_add_output_glyph (hb_buffer_t *buffer,
|
||||
info->component = component;
|
||||
if (ligID != 0xFFFF)
|
||||
info->ligID = ligID;
|
||||
info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
|
||||
|
||||
buffer->in_pos++;
|
||||
buffer->out_pos++;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ typedef struct _hb_glyph_info_t {
|
||||
unsigned int cluster;
|
||||
unsigned short component;
|
||||
unsigned short ligID;
|
||||
unsigned short gproperty;
|
||||
unsigned int internal;
|
||||
} hb_glyph_info_t;
|
||||
|
||||
typedef struct _hb_glyph_position_t {
|
||||
|
||||
+6
-6
@@ -182,9 +182,9 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t *layout,
|
||||
{
|
||||
unsigned int property;
|
||||
|
||||
if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
|
||||
ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
|
||||
property = ginfo->gproperty;
|
||||
if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
|
||||
ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
|
||||
property = ginfo->internal;
|
||||
if (property_out)
|
||||
*property_out = property;
|
||||
|
||||
@@ -221,9 +221,9 @@ _hb_ot_layout_skip_mark (hb_ot_layout_t *layout,
|
||||
{
|
||||
unsigned int property;
|
||||
|
||||
if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
|
||||
ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
|
||||
property = ginfo->gproperty;
|
||||
if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
|
||||
ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
|
||||
property = ginfo->internal;
|
||||
if (property_out)
|
||||
*property_out = property;
|
||||
|
||||
|
||||
Reference in new issue
Block a user