This function returns glyph substitutions for the specified script and glyph substitution feature, as defined in the specified font.
This function is a member of D-Type's Advanced Typography API. For additional details on glyph substitutions, please see the Advanced Typography Structures section of this document.
Parameter | Description |
---|---|
engine |
Handle of the previously created Standard Engine instance. |
font_index |
Font index of the font or font instance in the Font Catalog. |
script_id |
Index of the script for which the glyph substitutions are to be retrieved. At present, this can be one of the following:
|
feature_id |
Index of the glyph substitution feature for which the glyph substitutions are to be retrieved. At present, this can be one of the following:
|
reserved |
Reserved for future use. Must be set to 0. |
substs_set |
A valid pointer to the DT_AT_GLYPH_SUBSTS_SET type that will receive glyph substitutions for the specified script and glyph substitution feature, as defined in the specified font. For details, see the Advanced Typography Structures section. |
The return value is 1 if the function was successful. Otherwise, the function returns 0.