Stylistic Sets and sampleTextNameId

Read Roberts rroberts at adobe.com
Fri Aug 31 18:02:21 CEST 2012


I recognize this as part of the preliminary text for this section. At the time, we were considering including a third unsigned short word to provide a name ID for sample that is specifically to show of the stylistic set feature. However, this idea was dropped. The inclusion of the phrase "and sampleTextNameID" is an error; there is no such thing in the current spec. The sentence should read:
"The value of uiLabelNameId is expected to be in the font-specific name ID range (256-32767), though that is not a requirement in this Feature Parameters specification. "

Adobe has shipped two families which use the stylistic set feature FeatureParameter offset, to specify a FeatureParameter version and a name table name ID for a user label for the stylistic set feature. Other foundries have done so as well.

Read Roberts
Adobe Type Department

Responding to  Bob Bob Hallissy  Thu Sep 29, 2011 2:50 pm  |
Perhaps this has been raised before -- but a cursory search of the archives didn't find it...

In 14496-22_2009(E), the section about ss01-ss20 Stylistic Sets says:

The FeatureParams field of the Feature Table of these GSUB features may be set to 0, or to an offset to a Feature Parameters table comprising two successive USHORT values, as follows:

 *   Version (set to 0): This corresponds to a "minor" version number. Additional data may be added to the end of this Feature Parameters table in the future.
 *   UI Name ID: The 'name' table name ID that specifies a string (or strings, for multiple languages) for a user-interface label for this feature. The values of uiLabelNameId and sampleTextNameId are expected to be in the font-specific name ID range (256–32767), though that is not a requirement in this Feature Parameters specification. The user-interface label for the feature can be provided in multiple languages. An English string should be included as a fallback. The string should be kept to a minimal length to fit comfortably with different application interfaces.

My question is about the mention here of sampleTextNameId which isn't otherwise documented in this Stylist Sets section. It would be nice to have such, as per Character Variants, but "two successive USHORT values" wouldn't appear to include this.

I'm guessing the "and sampleTextNameID" was supposed to be added to the FeatureParams description of cv01-cv99 Character Variants where it says:

The values of featUiLabelNameId, featUiTooltipTextNameId and firstParamUiLabelNameId are expected to be
in the font-specific name ID range (256–32767), though that is not a requirement in this Feature Parameters
specification.

but would someone like to clarify?

Regards,
Bob Hallissy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.aau.at/pipermail/mpeg-otspec/attachments/20120831/924d1f57/attachment.html>


More information about the mpeg-otspec mailing list