IsTrueType
FontInfo.IsTrueType property
Indica che questo font è un font TrueType o OpenType anziché un font raster o vettoriale. Il valore predefinito èVERO
.
public bool IsTrueType { get; set; }
Esempi
Mostra come stampare i dettagli dei font presenti in un documento.
Document doc = new Document(MyDir + "Embedded font.docx");
FontInfoCollection allFonts = doc.FontInfos;
// Stampa tutti i font utilizzati e non utilizzati nel documento.
for (int i = 0; i < allFonts.Count; i++)
{
Console.WriteLine($"Font index #{i}");
Console.WriteLine($"\tName: {allFonts[i].Name}");
Console.WriteLine($"\tIs {(allFonts[i].IsTrueType ? "" : "not ")}a trueType font");
}
Guarda anche
- class FontInfo
- spazio dei nomi Aspose.Words.Fonts
- assemblea Aspose.Words