FontLocaleIdFarEast Property

Gets or sets the locale identifier (language) of the formatted Asian characters.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public int LocaleIdFarEast { get; set; }

Property Value

Type: Int32
Remarks
For the list of locale identifiers see https://msdn.microsoft.com/en-us/library/cc233965.aspx
Examples
Shows how to insert and format text in Chinese or any other Far East language.
DocumentBuilder builder = new DocumentBuilder();

builder.Font.Size = 48;

// Specify the font name. Make sure it the font has the glyphs that you want to display
builder.Font.NameFarEast = "SimSun";

// Specify the locale so Microsoft Word recognizes this text as Chinese
// For the list of locale identifiers see https://docs.microsoft.com/en-us/deployoffice/office2016/language-identifiers-and-optionstate-id-values-in-office-2016
builder.Font.LocaleIdFarEast = 2052;

// Insert some Chinese text
builder.Writeln("你好世界");

builder.Document.Save(ArtifactsDir + "Font.FarEast.doc");
See Also