PhysicalFontInfo class
PhysicalFontInfo class
Specifies information about physical font available to Aspose.Words font engine. To learn more, visit the Working with Fonts documentation article.
Properties
| Name | Description |
|---|---|
| embedding_licensing_rights | Embedding licensing rights for the font. |
| file_path | Path to the font file if any. |
| font_family_name | Family name of the font. |
| full_font_name | Full name of the font. |
| version | Version string of the font. |
Examples
Shows how to list available fonts.
# Configure Aspose.Words to source fonts from a custom folder, and then print every available font.
folder_font_source = [aw.fonts.FolderFontSource(folder_path=FONTS_DIR, scan_subfolders=True)]
for font_info in folder_font_source[0].get_available_fonts():
print('FontFamilyName : {0}'.format(font_info.font_family_name))
print('FullFontName : {0}'.format(font_info.full_font_name))
print('Version : {0}'.format(font_info.version))
print('FilePath : {0}\n'.format(font_info.file_path))
See Also
- module aspose.words.fonts