From 79c991e143a3a1c8ee0c0bcfc37dfb471eb414bf Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 8 Mar 2025 18:20:06 -0500 Subject: [PATCH] Improve docs for feature and variation serialization Clarify that the serialized forms of features and variations won't have any whitespace in them. This can help for parsing when embedding these strings into larger serializations. --- src/hb-common.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-common.cc b/src/hb-common.cc index 5d77433b3..d3355c971 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -968,6 +968,9 @@ hb_feature_from_string (const char *str, int len, * understood by hb_feature_from_string(). The client in responsible for * allocating big enough size for @buf, 128 bytes is more than enough. * + * Note that the feature value will be omitted if it is '1', but the + * string won't include any whitespace. + * * Since: 0.9.5 **/ void @@ -1121,6 +1124,8 @@ get_C_locale () * understood by hb_variation_from_string(). The client in responsible for * allocating big enough size for @buf, 128 bytes is more than enough. * + * Note that the string won't include any whitespace. + * * Since: 1.4.2 */ void