Important: The information in this document is obsolete and should not be used for new development.
FontToScript
TheFontToScriptfunction translates a font family ID number into its corresponding script code, if that script system is currently enabled.
FUNCTION FontToScript (fontNumber: Integer): Integer;
fontNumber- A font family ID number.
DESCRIPTION
TheFontToScriptfunction returns a script code. All recognized script codes and their defined constants are listed on page 6-52.FontToScriptreturns only explicit script codes (\xD1 0).If
fontNumberis in the Roman range and the font force flag isTRUE, the script code returned is that of the system script and the script-forced result flag is set toTRUE.If
fontNumberis in the non-Roman range, the state of the font force flag is ignored.If the script system corresponding to
fontNumberis not enabled, the script code returned is that of the system script and the script-defaulted result flag is set toTRUE.SPECIAL CONSIDERATIONS
FontToScriptmay move memory; your application should not call this function at interrupt time.