summaryrefslogtreecommitdiffstats
path: root/third_party/harfbuzz-ng/src/hb-font.h
diff options
context:
space:
mode:
authorbashi@chromium.org <bashi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-05 00:33:17 +0000
committerbashi@chromium.org <bashi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-05 00:33:17 +0000
commitf4e59db002be2b735b9b96b0b54ab3234851e6eb (patch)
tree94de05308f504462d5ff92671e7ae01be9efbbff /third_party/harfbuzz-ng/src/hb-font.h
parent56510ba355dee2cd6592cdf0d27c4c41ef0cae8b (diff)
downloadchromium_src-f4e59db002be2b735b9b96b0b54ab3234851e6eb.zip
chromium_src-f4e59db002be2b735b9b96b0b54ab3234851e6eb.tar.gz
chromium_src-f4e59db002be2b735b9b96b0b54ab3234851e6eb.tar.bz2
Roll harfbuzz-ng 3b8fd9c48f4bde368bf2d465c148b9743a9216ee
The revision provides HB_NO_MT macro that disables multi-threading support. We don't need multi-threading support for harfbuzz-ng. BUG=none TEST=compiled ("make harfbuzz-ng") Review URL: https://chromiumcodereview.appspot.com/10510004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/harfbuzz-ng/src/hb-font.h')
-rw-r--r--third_party/harfbuzz-ng/src/hb-font.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/third_party/harfbuzz-ng/src/hb-font.h b/third_party/harfbuzz-ng/src/hb-font.h
index 8a9dda5..b98759b 100644
--- a/third_party/harfbuzz-ng/src/hb-font.h
+++ b/third_party/harfbuzz-ng/src/hb-font.h
@@ -24,6 +24,10 @@
* Red Hat Author(s): Behdad Esfahbod
*/
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
#ifndef HB_FONT_H
#define HB_FONT_H
@@ -188,6 +192,16 @@ typedef hb_bool_t (*hb_font_get_glyph_contour_point_func_t) (hb_font_t *font, vo
void *user_data);
+typedef hb_bool_t (*hb_font_get_glyph_name_func_t) (hb_font_t *font, void *font_data,
+ hb_codepoint_t glyph,
+ char *name, unsigned int size,
+ void *user_data);
+typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *font_data,
+ const char *name, int len, /* -1 means nul-terminated */
+ hb_codepoint_t *glyph,
+ void *user_data);
+
+
/* func setters */
void
@@ -231,6 +245,15 @@ hb_font_funcs_set_glyph_contour_point_func (hb_font_funcs_t *ffuncs,
hb_font_get_glyph_contour_point_func_t func,
void *user_data, hb_destroy_func_t destroy);
+void
+hb_font_funcs_set_glyph_name_func (hb_font_funcs_t *ffuncs,
+ hb_font_get_glyph_name_func_t glyph_func,
+ void *user_data, hb_destroy_func_t destroy);
+void
+hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
+ hb_font_get_glyph_from_name_func_t glyph_func,
+ void *user_data, hb_destroy_func_t destroy);
+
/* func dispatch */
@@ -272,6 +295,15 @@ hb_font_get_glyph_contour_point (hb_font_t *font,
hb_codepoint_t glyph, unsigned int point_index,
hb_position_t *x, hb_position_t *y);
+hb_bool_t
+hb_font_get_glyph_name (hb_font_t *font,
+ hb_codepoint_t glyph,
+ char *name, unsigned int size);
+hb_bool_t
+hb_font_get_glyph_from_name (hb_font_t *font,
+ const char *name, int len, /* -1 means nul-terminated */
+ hb_codepoint_t *glyph);
+
/* high-level funcs, with fallback */