提交 ae9e8f29 编写于 作者: B Behdad Esfahbod

[vowel-constraints] Reset continuation on all dottedcircles

One of the was missed before.  Not intentional.
上级 d2b20ba1
...@@ -104,7 +104,7 @@ class ConstraintSet (object): ...@@ -104,7 +104,7 @@ class ConstraintSet (object):
s.append ('{}{{\n'.format (indent)) s.append ('{}{{\n'.format (indent))
for i in range (len (self._c)): for i in range (len (self._c)):
s.append ('{}buffer->next_glyph ();\n'.format (self._indent (depth + 1))) s.append ('{}buffer->next_glyph ();\n'.format (self._indent (depth + 1)))
s.append ('{}buffer->output_glyph (0x25CCu);\n'.format (self._indent (depth + 1))) s.append ('{}_output_dotted_circle (buffer);\n'.format (self._indent (depth + 1)))
s.append ('{}}}\n'.format (indent)) s.append ('{}}}\n'.format (indent))
else: else:
s.append ('{}switch (buffer->cur ({}).codepoint)\n'.format(indent, index or '')) s.append ('{}switch (buffer->cur ({}).codepoint)\n'.format(indent, index or ''))
...@@ -161,11 +161,16 @@ print () ...@@ -161,11 +161,16 @@ print ()
print ('#include "hb-ot-shape-complex-vowel-constraints.hh"') print ('#include "hb-ot-shape-complex-vowel-constraints.hh"')
print () print ()
print ('static void') print ('static void')
print ('_output_with_dotted_circle (hb_buffer_t *buffer)') print ('_output_dotted_circle (hb_buffer_t *buffer)')
print ('{') print ('{')
print (' hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu);') print (' hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu);')
print (' _hb_glyph_info_reset_continuation (&dottedcircle);') print (' _hb_glyph_info_reset_continuation (&dottedcircle);')
print ('}')
print () print ()
print ('static void')
print ('_output_with_dotted_circle (hb_buffer_t *buffer)')
print ('{')
print (' _output_dotted_circle (buffer);')
print (' buffer->next_glyph ();') print (' buffer->next_glyph ();')
print ('}') print ('}')
print () print ()
......
...@@ -16,11 +16,16 @@ ...@@ -16,11 +16,16 @@
#include "hb-ot-shape-complex-vowel-constraints.hh" #include "hb-ot-shape-complex-vowel-constraints.hh"
static void static void
_output_with_dotted_circle (hb_buffer_t *buffer) _output_dotted_circle (hb_buffer_t *buffer)
{ {
hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu); hb_glyph_info_t &dottedcircle = buffer->output_glyph (0x25CCu);
_hb_glyph_info_reset_continuation (&dottedcircle); _hb_glyph_info_reset_continuation (&dottedcircle);
}
static void
_output_with_dotted_circle (hb_buffer_t *buffer)
{
_output_dotted_circle (buffer);
buffer->next_glyph (); buffer->next_glyph ();
} }
...@@ -83,7 +88,7 @@ _hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan, ...@@ -83,7 +88,7 @@ _hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan,
{ {
buffer->next_glyph (); buffer->next_glyph ();
buffer->next_glyph (); buffer->next_glyph ();
buffer->output_glyph (0x25CCu); _output_dotted_circle (buffer);
} }
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册