# How to obtain the font name and size of an OdDbText object?

 1. [FAQ](/faq)
2. »
3. [Text and Font Questions](/faq/text-and-font-questions)

Use the OdDbTextStyleTableRecord::font() method for getting the characteristics such as typeface, bold, italic, charset, pitch\_and\_family of the Windows font associated with the text style.

If the font() method returns an empty typeface, use the OdDbTextStyleTableRecord::fileName() method. This method returns the name of the uni-font file associated with this text style. Text size is a property of the OdDbText entity and the height() method returns its value. For more details, see the [Font Handling](https://docs.opendesign.com/td/FontHandling.html) topic in the Developer's Guide.
