Getting information about the .Net font?

Is there a wrapper around the Win32 API for retrieving font information without actually instantiating an instance of the .NET Font class?

For example, some fonts do not have the usual style, so I need to determine which styles are valid for the font without creating an instance of it.

+3
source share
1 answer

What about FontFamily.IsStyleAvailable? You still have to create an instance of the FontFamily class, but I don’t know what exactly is involved in it, but it may be lighter than Font.

+3
source

Source: https://habr.com/ru/post/1699064/


All Articles