
## FontInfo.name property

Gets the name of the font.


```python
@property
def name(self) -> str:
    ...

```

### Remarks

Cannot be ``None``. Can be an empty string.




### Examples

Shows how to print the details of what fonts are present in a document.

```python
doc = aw.Document(file_name=MY_DIR + 'Embedded font.docx')
all_fonts = doc.font_infos
# Print all the used and unused fonts in the document.
i = 0
while i < all_fonts.count:
    print(f'Font index #{i}')
    print(f'\tName: {all_fonts[i].name}')
    print(f"\tIs {('' if all_fonts[i].is_true_type else 'not ')}a trueType font")
    i += 1
```

### See Also

* module [aspose.words.fonts](../../)
* class [FontInfo](../)

