|
|
|
@ -271,6 +271,7 @@ hb_buffer_t::similar (const hb_buffer_t &src) |
|
|
|
|
replacement = src.replacement; |
|
|
|
|
invisible = src.invisible; |
|
|
|
|
not_found = src.not_found; |
|
|
|
|
not_found_variation_selector = src.not_found_variation_selector; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
@ -283,6 +284,7 @@ hb_buffer_t::reset () |
|
|
|
|
replacement = HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT; |
|
|
|
|
invisible = 0; |
|
|
|
|
not_found = 0; |
|
|
|
|
not_found_variation_selector = HB_CODEPOINT_INVALID; |
|
|
|
|
|
|
|
|
|
clear (); |
|
|
|
|
} |
|
|
|
@ -705,6 +707,7 @@ DEFINE_NULL_INSTANCE (hb_buffer_t) = |
|
|
|
|
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT, |
|
|
|
|
0, /* invisible */ |
|
|
|
|
0, /* not_found */ |
|
|
|
|
HB_CODEPOINT_INVALID, /* not_found_variation_selector */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HB_BUFFER_CONTENT_TYPE_INVALID, |
|
|
|
@ -1360,6 +1363,44 @@ hb_buffer_get_not_found_glyph (const hb_buffer_t *buffer) |
|
|
|
|
return buffer->not_found; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_buffer_set_not_found_variation_selector_glyph: |
|
|
|
|
* @buffer: An #hb_buffer_t |
|
|
|
|
* @not_found_variation_selector: the not-found-variation-selector #hb_codepoint_t |
|
|
|
|
* |
|
|
|
|
* Sets the #hb_codepoint_t that replaces variation-selector characters not resolved |
|
|
|
|
* in the font during shaping. |
|
|
|
|
* |
|
|
|
|
* The not-found-variation-selector glyph defaults to #HB_CODEPOINT_INVALID, |
|
|
|
|
* in which case it will be removed from the glyph string during shaping. |
|
|
|
|
* This API allows for changing that and retaining the glyph. |
|
|
|
|
* |
|
|
|
|
* XSince: REPLACEME |
|
|
|
|
**/ |
|
|
|
|
void |
|
|
|
|
hb_buffer_set_not_found_variation_selector_glyph (hb_buffer_t *buffer, |
|
|
|
|
hb_codepoint_t not_found_variation_selector) |
|
|
|
|
{ |
|
|
|
|
buffer->not_found_variation_selector = not_found_variation_selector; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_buffer_get_not_found_variation_selector_glyph: |
|
|
|
|
* @buffer: An #hb_buffer_t |
|
|
|
|
* |
|
|
|
|
* See hb_buffer_set_not_found_variation_selector_glyph(). |
|
|
|
|
* |
|
|
|
|
* Return value: |
|
|
|
|
* The @buffer not-found-variation-selector #hb_codepoint_t |
|
|
|
|
* |
|
|
|
|
* XSince: REPLACEME |
|
|
|
|
**/ |
|
|
|
|
hb_codepoint_t |
|
|
|
|
hb_buffer_get_not_found_variation_selector_glyph (const hb_buffer_t *buffer) |
|
|
|
|
{ |
|
|
|
|
return buffer->not_found_variation_selector; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* hb_buffer_set_random_state: |
|
|
|
|
* @buffer: An #hb_buffer_t |
|
|
|
|