From c89aebc40b2c29ad6bcae8e5fff7189f70b35d55 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 24 Jan 2023 20:24:27 -0500 Subject: [PATCH] hb-font: Document length limit for glyph names This is useful information for users of the hb_font_get_glyph_name() API. --- src/hb-font.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-font.cc b/src/hb-font.cc index f2127c2b1..da5162b98 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -1343,6 +1343,9 @@ hb_font_get_glyph_contour_point (hb_font_t *font, * * Fetches the glyph-name string for a glyph ID in the specified @font. * + * According to the OpenType specification, glyph names are limited to 63 + * characters and can only contain (a subset of) ASCII. + * * Return value: `true` if data found, `false` otherwise * * Since: 0.9.2