FontNameAscii Property

Returns or sets the font used for Latin text (characters with character codes from 0 (zero) through 127).

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

Property Value

Type: String
Remarks
Examples
A pretty unusual example of how Microsoft Word can combine two different fonts in one run.
DocumentBuilder builder = new DocumentBuilder();

// This tells Microsoft Word to use Arial for characters 0..127 and
// Times New Roman for characters 128..255
// Looks like a pretty strange case to me, but it is possible
builder.Font.NameAscii = "Arial";
builder.Font.NameOther = "Times New Roman";

builder.Writeln("Hello, Привет");

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