From bb702ff6dec2cf201608bab28ac5c676f0ebaabe Mon Sep 17 00:00:00 2001 From: Roshan Ramani Date: Sat, 17 Oct 2026 12:59:24 +0530 Subject: [PATCH] [docs] Fix five function names in the user manual The manual named hb_ot_color_reference_png/svg(), hb_font_paint_or_fail_glyph(), hb_ft_get_face() and hb_coretext_face_get_ct_font(), none of which exist. Use hb_ot_color_glyph_reference_png/svg(), hb_font_paint_glyph_or_fail(), hb_ft_font_get_face() and hb_coretext_font_get_ct_font(). Assisted-by: Claude Code:claude-opus-5-5 --- docs/usermanual-fonts-and-faces.xml | 6 +++--- docs/usermanual-integration.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/usermanual-fonts-and-faces.xml b/docs/usermanual-fonts-and-faces.xml index e7e580143..2c5d97a74 100644 --- a/docs/usermanual-fonts-and-faces.xml +++ b/docs/usermanual-fonts-and-faces.xml @@ -495,8 +495,8 @@ hb_font_set_variations(font, variation_data, variation_count); Fonts may provide pre-rendered images for glyphs instead of or in addition to outlines. This is most common for fonts that contain colored glyphs, such as - Emoji. To access these images, use hb_ot_color_reference_png() - or hb_ot_color_reference_svg(). + Emoji. To access these images, use hb_ot_color_glyph_reference_png() + or hb_ot_color_glyph_reference_svg(). Another way in which fonts provide colored glyphs is via paint graphs that @@ -507,7 +507,7 @@ hb_font_set_variations(font, variation_data, variation_count); access glyph data in this form. - In the general case, you have to use hb_font_paint_or_fail_glyph() + In the general case, you have to use hb_font_paint_glyph_or_fail() and pass a hb_paint_funcs_t struct with callbacks to obtain paint color glyphs, either graphs or image glyphs. The hb_font_paint_glyph() API is higher level and can handle diff --git a/docs/usermanual-integration.xml b/docs/usermanual-integration.xml index 81c64bc16..655e55f29 100644 --- a/docs/usermanual-integration.xml +++ b/docs/usermanual-integration.xml @@ -256,7 +256,7 @@ hb_font_t *font = hb_ft_font_create(face); hb_ft_font_changed() that you should call whenever you have altered the properties of your underlying FT_Face, as well as a - hb_ft_get_face() that you can call on an + hb_ft_font_get_face() that you can call on an hb_font_t font object to fetch its underlying FT_Face. @@ -524,7 +524,7 @@ hb_ft_font_set_funcs(font); hb_coretext_font_create(), and you can fetch the associated CTFontRef from a hb_font_t font object with - hb_coretext_face_get_ct_font(). + hb_coretext_font_get_ct_font(). HarfBuzz also offers a hb_font_set_ptem()