From c7b2e64c6d9e2f9b130c8fd581f0e5a67021b76d Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 27 Dec 2020 00:53:23 +0200 Subject: [PATCH] [docs] make it clear that FT_Face must have size Fixes https://github.com/harfbuzz/harfbuzz/issues/2590 --- src/hb-ft.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index ab7d6146c..9923bcd48 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -776,8 +776,8 @@ hb_ft_face_create_cached (FT_Face ft_face) * Creates an #hb_font_t font object from the specified FT_Face. * * Note: You must set the face size on @ft_face before calling - * hb_ft_font_create() on it. Otherwise, HarfBuzz will not pick up - * the face size. + * hb_ft_font_create() on it. HarfBuzz assumes size is always set and will + * access `size` member of FT_Face unconditionally. * * This variant of the function does not provide any life-cycle management. * @@ -884,8 +884,8 @@ hb_ft_font_changed (hb_font_t *font) * Creates an #hb_font_t font object from the specified FT_Face. * * Note: You must set the face size on @ft_face before calling - * hb_ft_font_create_references() on it. Otherwise, HarfBuzz will not pick up - * the face size. + * hb_ft_font_create_referenced() on it. HarfBuzz assumes size is always set + * and will access `size` member of FT_Face unconditionally. * * This is the preferred variant of the hb_ft_font_create* * function family, because it calls FT_Reference_Face() on @ft_face,