[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
This commit is contained in:
Roshan Ramani authored and Khaled Hosny committed 2026-10-17 14:13:49 +03:00
1 parent 47b18b6ebd
commit bb702ff6de
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -495,8 +495,8 @@ hb_font_set_variations(font, variation_data, variation_count);
<para>
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 <function>hb_ot_color_reference_png()</function>
or <function>hb_ot_color_reference_svg()</function>.
Emoji. To access these images, use <function>hb_ot_color_glyph_reference_png()</function>
or <function>hb_ot_color_glyph_reference_svg()</function>.
</para>
<para>
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.
</para>
<para>
In the general case, you have to use <function>hb_font_paint_or_fail_glyph()</function>
In the general case, you have to use <function>hb_font_paint_glyph_or_fail()</function>
and pass a <type>hb_paint_funcs_t</type> struct with callbacks to obtain paint
color glyphs, either graphs or image glyphs.
The <function>hb_font_paint_glyph()</function> API is higher level and can handle
+2 -2
View File
@@ -256,7 +256,7 @@ hb_font_t *font = hb_ft_font_create(face);
<function>hb_ft_font_changed()</function> that you should
call whenever you have altered the properties of your underlying
<type>FT_Face</type>, as well as a
<function>hb_ft_get_face()</function> that you can call on an
<function>hb_ft_font_get_face()</function> that you can call on an
<type>hb_font_t</type> font object to fetch its underlying <type>FT_Face</type>.
</para>
<para>
@@ -524,7 +524,7 @@ hb_ft_font_set_funcs(font);
<function>hb_coretext_font_create()</function>, and you can
fetch the associated <type>CTFontRef</type> from a
<type>hb_font_t</type> font object with
<function>hb_coretext_face_get_ct_font()</function>.
<function>hb_coretext_font_get_ct_font()</function>.
</para>
<para>
HarfBuzz also offers a <function>hb_font_set_ptem()</function>