[OT] Only insert dottedcircle if at the beginning of paragraph
If the first char in the run is a combining mark, but there is text before the run, don't insert dottedcircle. Part of addressing: https://bugzilla.redhat.com/show_bug.cgi?id=858736
This commit is contained in:
parent
bdc2fc8294
commit
f2eb3fa9dc
|
@ -237,10 +237,8 @@ hb_set_unicode_props (hb_buffer_t *buffer)
|
||||||
static void
|
static void
|
||||||
hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font)
|
hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font)
|
||||||
{
|
{
|
||||||
/* TODO One day, when we keep _before_ text for the buffer, take
|
if (buffer->context_len[0] ||
|
||||||
* that into consideration. For now, insert dotted-circle if the
|
_hb_glyph_info_get_general_category (&buffer->info[0]) !=
|
||||||
* very first character is a non-spacing mark. */
|
|
||||||
if (_hb_glyph_info_get_general_category (&buffer->info[0]) !=
|
|
||||||
HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
|
HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue