Revert "Show U+FFFD REPLACEMENT CHARACTER for invalid Unicode codepoints"
We now handle U+FFFD replacement in hb_buffer_add_utf*(). Any other manipulation can happen in user callbacks. No need for this.efe74214bb (commitcomment-7039404)
This reverts commitefe74214bb
. Conflicts: src/hb-ot-shape-normalize.cc
This commit is contained in:
parent
9e7c720100
commit
5209c50506
|
@ -209,15 +209,8 @@ decompose_current_character (const hb_ot_shape_normalize_context_t *c, bool shor
|
||||||
else if (decompose_compatibility (c, buffer->cur().codepoint))
|
else if (decompose_compatibility (c, buffer->cur().codepoint))
|
||||||
skip_char (buffer);
|
skip_char (buffer);
|
||||||
else
|
else
|
||||||
{
|
|
||||||
/* Not found, not decomposible; If codepoint is invalid Unicode and
|
|
||||||
* font supports U+FFFD REPLACEMENT CHARACTER, use that instead. */
|
|
||||||
hb_codepoint_t FFFD_glyph;
|
|
||||||
if (buffer->cur().codepoint > 0x10FFFFu && c->font->get_glyph (0xFFFDu, 0, &FFFD_glyph))
|
|
||||||
glyph = FFFD_glyph;
|
|
||||||
next_char (buffer, glyph); /* glyph is initialized in earlier branches. */
|
next_char (buffer, glyph); /* glyph is initialized in earlier branches. */
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
handle_variation_selector_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool short_circuit)
|
handle_variation_selector_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool short_circuit)
|
||||||
|
|
Loading…
Reference in New Issue