[layout] Adjust printing feature tags
For required-feature, print spaces, not nul bytes.
This commit is contained in:
parent
56e3868b52
commit
a81dd1053d
|
@ -1913,7 +1913,7 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
|
||||||
auto &lookup = lookups[table_index][i];
|
auto &lookup = lookups[table_index][i];
|
||||||
|
|
||||||
unsigned int lookup_index = lookup.index;
|
unsigned int lookup_index = lookup.index;
|
||||||
if (!buffer->message (font, "start lookup %d feature %c%c%c%c", lookup_index, HB_UNTAG (lookup.feature_tag))) continue;
|
if (!buffer->message (font, "start lookup %d feature '%c%c%c%c'", lookup_index, HB_UNTAG (lookup.feature_tag))) continue;
|
||||||
|
|
||||||
/* c.digest is a digest of all the current glyphs in the buffer
|
/* c.digest is a digest of all the current glyphs in the buffer
|
||||||
* (plus some past glyphs).
|
* (plus some past glyphs).
|
||||||
|
@ -1933,9 +1933,9 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
|
||||||
proxy.accels[lookup_index]);
|
proxy.accels[lookup_index]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
(void) buffer->message (font, "skipped lookup %d feature %c%c%c%c because no glyph matches", lookup_index, HB_UNTAG (lookup.feature_tag));
|
(void) buffer->message (font, "skipped lookup %d feature '%c%c%c%c' because no glyph matches", lookup_index, HB_UNTAG (lookup.feature_tag));
|
||||||
|
|
||||||
(void) buffer->message (font, "end lookup %d feature %c%c%c%c", lookup_index, HB_UNTAG (lookup.feature_tag));
|
(void) buffer->message (font, "end lookup %d feature '%c%c%c%c'", lookup_index, HB_UNTAG (lookup.feature_tag));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stage->pause_func)
|
if (stage->pause_func)
|
||||||
|
|
|
@ -243,7 +243,7 @@ struct hb_ot_map_builder_t
|
||||||
bool auto_zwj = true,
|
bool auto_zwj = true,
|
||||||
bool random = false,
|
bool random = false,
|
||||||
bool per_syllable = false,
|
bool per_syllable = false,
|
||||||
hb_tag_t feature_tag = HB_TAG_NONE);
|
hb_tag_t feature_tag = HB_TAG(' ',' ',' ',' '));
|
||||||
|
|
||||||
struct feature_info_t {
|
struct feature_info_t {
|
||||||
hb_tag_t tag;
|
hb_tag_t tag;
|
||||||
|
|
Loading…
Reference in New Issue