[PairPos] Adjust kerning buffer messages
This commit is contained in:
parent
a81dd1053d
commit
e3cc61838f
|
@ -220,13 +220,14 @@ struct PairPosFormat2_4
|
||||||
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
{
|
{
|
||||||
c->buffer->message (c->font,
|
c->buffer->message (c->font,
|
||||||
"kerning glyphs at %d,%d",
|
"try kerning glyphs at %d,%d",
|
||||||
c->buffer->idx, skippy_iter.idx);
|
c->buffer->idx, skippy_iter.idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
applied_first = valueFormat1.apply_value (c, this, v, buffer->cur_pos());
|
applied_first = valueFormat1.apply_value (c, this, v, buffer->cur_pos());
|
||||||
applied_second = valueFormat2.apply_value (c, this, v + len1, buffer->pos[skippy_iter.idx]);
|
applied_second = valueFormat2.apply_value (c, this, v + len1, buffer->pos[skippy_iter.idx]);
|
||||||
|
|
||||||
|
if (applied_first || applied_second)
|
||||||
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
{
|
{
|
||||||
c->buffer->message (c->font,
|
c->buffer->message (c->font,
|
||||||
|
@ -234,6 +235,13 @@ struct PairPosFormat2_4
|
||||||
c->buffer->idx, skippy_iter.idx);
|
c->buffer->idx, skippy_iter.idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
|
{
|
||||||
|
c->buffer->message (c->font,
|
||||||
|
"tried kerning glyphs at %d,%d",
|
||||||
|
c->buffer->idx, skippy_iter.idx);
|
||||||
|
}
|
||||||
|
|
||||||
success:
|
success:
|
||||||
if (applied_first || applied_second)
|
if (applied_first || applied_second)
|
||||||
buffer->unsafe_to_break (buffer->idx, skippy_iter.idx + 1);
|
buffer->unsafe_to_break (buffer->idx, skippy_iter.idx + 1);
|
||||||
|
|
|
@ -112,13 +112,14 @@ struct PairSet
|
||||||
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
{
|
{
|
||||||
c->buffer->message (c->font,
|
c->buffer->message (c->font,
|
||||||
"kerning glyphs at %d,%d",
|
"try kerning glyphs at %d,%d",
|
||||||
c->buffer->idx, pos);
|
c->buffer->idx, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool applied_first = valueFormats[0].apply_value (c, this, &record->values[0], buffer->cur_pos());
|
bool applied_first = valueFormats[0].apply_value (c, this, &record->values[0], buffer->cur_pos());
|
||||||
bool applied_second = valueFormats[1].apply_value (c, this, &record->values[len1], buffer->pos[pos]);
|
bool applied_second = valueFormats[1].apply_value (c, this, &record->values[len1], buffer->pos[pos]);
|
||||||
|
|
||||||
|
if (applied_first || applied_second)
|
||||||
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
{
|
{
|
||||||
c->buffer->message (c->font,
|
c->buffer->message (c->font,
|
||||||
|
@ -126,6 +127,13 @@ struct PairSet
|
||||||
c->buffer->idx, pos);
|
c->buffer->idx, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HB_BUFFER_MESSAGE_MORE && c->buffer->messaging ())
|
||||||
|
{
|
||||||
|
c->buffer->message (c->font,
|
||||||
|
"tried kerning glyphs at %d,%d",
|
||||||
|
c->buffer->idx, pos);
|
||||||
|
}
|
||||||
|
|
||||||
if (applied_first || applied_second)
|
if (applied_first || applied_second)
|
||||||
buffer->unsafe_to_break (buffer->idx, pos + 1);
|
buffer->unsafe_to_break (buffer->idx, pos + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue