FontLocaleIdFarEast Property |
Namespace: Aspose.Words
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");