From 1b7b97f28ac192006ca5b6d1cc9fbc80fa2bdb55 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 10 Aug 2009 21:10:37 -0400 Subject: [PATCH] [HB] Add buffer UTF-X API --- src/hb-buffer.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 4240f6ab3..4804a8720 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -111,6 +111,27 @@ hb_buffer_add_glyph (hb_buffer_t *buffer, hb_mask_t mask, unsigned int cluster); +void +hb_buffer_add_utf8 (hb_buffer_t *buffer, + const char *text, + unsigned int text_len, + unsigned int item_offset, + unsigned int item_len); + +void +hb_buffer_add_utf16 (hb_buffer_t *buffer, + const uint16_t *text, + unsigned int text_len, + unsigned int item_offset, + unsigned int item_len); + +void +hb_buffer_add_utf32 (hb_buffer_t *buffer, + const uint32_t *text, + unsigned int text_len, + unsigned int item_offset, + unsigned int item_len); + /* Getting glyphs out of the buffer */