unsigned int alt_index = 0;
/* XXX callback to user to choose alternate
- if ( gsub->altfunc )
- alt_index = (gsub->altfunc)( buffer->out_pos, glyph_id,
- aset.GlyphCount, aset.Alternate,
- gsub->data );
+ if (layout->altfunc)
+ alt_index = (layout->altfunc)(layout, buffer,
+ buffer->out_pos, glyph_id,
+ alt_set.len, alt_set.array);
*/
if (HB_UNLIKELY (alt_index >= alt_set.len))
(buffer->in_pos)++;
}
- /* XXX We should possibly reassign lig_id and component for any
+ /* TODO We should possibly reassign lig_id and component for any
* components of a previous ligature that s now being removed as part of
* this ligature. */
}
inline bool ExtensionSubstFormat1::substitute (LOOKUP_ARGS_DEF) const {
unsigned int lookup_type = get_type ();
- /* TODO: belongs to sanitize() */
+ /* TODO belongs to sanitize() */
if (HB_UNLIKELY (lookup_type == GSUB_ReverseChainSingle))
return false;
* Int types
*/
-/* XXX define these as structs of chars on machines that do not allow
+/* TODO define these as structs of chars on machines that do not allow
* unaligned access (using templates?). */
#define DEFINE_INT_TYPE1(NAME, TYPE, BIG_ENDIAN) \
inline NAME& operator = (TYPE i) { v = BIG_ENDIAN(i); return *this; } \
* GDEF
*/
-/* XXX the public class_t is a mess */
+/* TODO the public class_t is a mess */
hb_bool_t
hb_ot_layout_has_font_glyph_classes (hb_ot_layout_t *layout)
-/* XXX dupped, until he old code can be removed */
+/* TODO dupped, until he old code can be removed */
static HB_Error
hb_buffer_duplicate_out_buffer( HB_Buffer buffer )