Version

Add Method (RichTextScriptCodeMappings)

Adds a mapping from an ISO 15924 four-letter script code to a font names, replacing any existing mapping for the script code.
Syntax
'Declaration
 
Public Sub Add( _
   ByVal scriptCode As String, _
   ByVal fontName As String _
) 
public void Add( 
   string scriptCode,
   string fontName
)

Parameters

scriptCode
The four-letter ISO 15924 script code.
fontName
The font name to use for characters from the specified script code.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when scriptCode is null.
System.ArgumentNullExceptionOccurs when fontName is null.
System.ArgumentExceptionOccurs when fontName is the Common script code (Zyyy).
Remarks

Note: The Common script code (Zyyy) cannot be mapped because MS Word and the RichTextDocument use the Latin script code (Latn) when getting fonts for characters with a Common script code.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also