From b3d8be8755325b812301d4da21d77160d279c832 Mon Sep 17 00:00:00 2001 From: Muhammad Tayyab Akram Date: Sun, 30 Sep 2018 18:58:28 +0500 Subject: [PATCH] [lib] Wrote documentation of public set feature values function --- Headers/SFScheme.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Headers/SFScheme.h b/Headers/SFScheme.h index c90cfb6..ce77945 100644 --- a/Headers/SFScheme.h +++ b/Headers/SFScheme.h @@ -58,6 +58,23 @@ void SFSchemeSetScriptTag(SFSchemeRef scheme, SFTag scriptTag); */ void SFSchemeSetLanguageTag(SFSchemeRef scheme, SFTag languageTag); +/** + * Sets the OpenType feature values in a scheme. + * + * If the value of a feature is set to zero, it would be disabled provided that it is not a required + * feature of the script specific shaping engine. If the value of a feature is greater than zero, it + * would be enabled. In case of an alternate feature, this value would be used to pick the alternate + * glyph at this position. + * + * @param scheme + * The scheme for which to set the feature values. + * @param featureTags + * An array of feature tags whose values should be set. + * @param featureValues + * An array of OpenType feature values. + * @param featureCount + * The number of elements in feature tags and feature values array. + */ void SFSchemeSetFeatureValues(SFSchemeRef scheme, SFTag *featureTags, SFUInt16 *featureValues, SFUInteger featureCount);