diff --git a/docs/harfbuzz-sections.txt b/docs/harfbuzz-sections.txt index f2c75930d..a6ae470f2 100644 --- a/docs/harfbuzz-sections.txt +++ b/docs/harfbuzz-sections.txt @@ -329,6 +329,7 @@ hb_font_get_parent hb_font_get_ppem hb_font_get_ptem hb_font_get_scale +hb_font_get_synthetic_slant hb_font_get_user_data hb_font_get_variation_glyph hb_font_get_variation_glyph_func_t @@ -345,6 +346,7 @@ hb_font_set_parent hb_font_set_ppem hb_font_set_ptem hb_font_set_scale +hb_font_set_synthetic_slant hb_font_set_user_data hb_font_set_variations hb_font_set_var_coords_design diff --git a/src/hb-font.cc b/src/hb-font.cc index 1c6a41011..7e24d0dfc 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -2031,9 +2031,15 @@ hb_font_get_ptem (hb_font_t *font) * @font: #hb_font_t to work upon * @ptem: font size in points. * - * Sets the XXX "point size" of a font. By default is zero. + * Sets the "synthetic slant" of a font. By default is zero. + * Synthetic slant is the graphical skew that the renderer + * applies to the font at rendering time. * - * Note: XXX There are 72 points in an inch. + * HarfBuzz needs to know this value to adjust shaping results, + * metrics, and style values to match the slanted rendering. + * + * Note: The slant value is a ratio. For example, a + * 20% slant would be represented as a 0.2 value. * * Since: REPLACEME **/ @@ -2051,9 +2057,9 @@ hb_font_set_synthetic_slant (hb_font_t *font, float slant) * hb_font_get_synthetic_slant: * @font: #hb_font_t to work upon * - * Fetches the "point size" of a font. + * Fetches the "synthetic slant" of a font. * - * Return value: XXX Point size. By default is zero. + * Return value: Synthetic slant. By default is zero. * * Since: REPLACEME **/