Index: third_party/harfbuzz-ng/src/hb-font.h |
diff --git a/third_party/harfbuzz-ng/src/hb-font.h b/third_party/harfbuzz-ng/src/hb-font.h |
index cf22589ec65531c816840f841a4ccbfd5f2e3237..fb4a0eab5a99f53fd0fb683be13c0f1c9d2cdaa7 100644 |
--- a/third_party/harfbuzz-ng/src/hb-font.h |
+++ b/third_party/harfbuzz-ng/src/hb-font.h |
@@ -80,12 +80,13 @@ hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs); |
/* glyph extents */ |
+/* Note that height is negative in coordinate systems that grow up. */ |
typedef struct hb_glyph_extents_t |
{ |
- hb_position_t x_bearing; |
- hb_position_t y_bearing; |
- hb_position_t width; |
- hb_position_t height; |
+ hb_position_t x_bearing; /* left side of glyph from origin. */ |
+ hb_position_t y_bearing; /* top side of glyph from origin. */ |
+ hb_position_t width; /* distance from left to right side. */ |
+ hb_position_t height; /* distance from top to bottom side. */ |
} hb_glyph_extents_t; |
@@ -148,7 +149,7 @@ typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void * |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs, |
@@ -164,7 +165,7 @@ hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_h_advance_func (hb_font_funcs_t *ffuncs, |
@@ -180,7 +181,7 @@ hb_font_funcs_set_glyph_h_advance_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_v_advance_func (hb_font_funcs_t *ffuncs, |
@@ -196,7 +197,7 @@ hb_font_funcs_set_glyph_v_advance_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_h_origin_func (hb_font_funcs_t *ffuncs, |
@@ -212,7 +213,7 @@ hb_font_funcs_set_glyph_h_origin_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_v_origin_func (hb_font_funcs_t *ffuncs, |
@@ -228,7 +229,7 @@ hb_font_funcs_set_glyph_v_origin_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_h_kerning_func (hb_font_funcs_t *ffuncs, |
@@ -244,7 +245,7 @@ hb_font_funcs_set_glyph_h_kerning_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_v_kerning_func (hb_font_funcs_t *ffuncs, |
@@ -260,7 +261,7 @@ hb_font_funcs_set_glyph_v_kerning_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_extents_func (hb_font_funcs_t *ffuncs, |
@@ -276,7 +277,7 @@ hb_font_funcs_set_glyph_extents_func (hb_font_funcs_t *ffuncs, |
* |
* |
* |
- * Since: 1.0 |
+ * Since: 0.9.2 |
**/ |
void |
hb_font_funcs_set_glyph_contour_point_func (hb_font_funcs_t *ffuncs, |
@@ -458,6 +459,10 @@ hb_font_make_immutable (hb_font_t *font); |
hb_bool_t |
hb_font_is_immutable (hb_font_t *font); |
+void |
+hb_font_set_parent (hb_font_t *font, |
+ hb_font_t *parent); |
+ |
hb_font_t * |
hb_font_get_parent (hb_font_t *font); |