11.8. System.Drawing.Text namespace

The last namespace in the System.Drawing namespace is System.Drawing.Text, which provides advanced GDI+ typography functionality. It contains one base class, FontCollection, from which the InstalledFontCollection and PrivateFontCollection classes are derived. The InstalledFontCollection class is a collection of fonts currently installed on the system. The PrivateFontCollection class is a collection of fonts that are used by the application currently running. This last collection contains private versions of existing fonts, which can be manipulated by our application without affecting the whole system, as well as fonts temporarily installed by the application.

The following example shows how to get the names ...

Get A Programmer's Guide to .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.