Skary
Skary

Reputation: 1362

Get FontFamily from Font instance

As stated in the title i have a Font instance and i would get the FontFamily used to build that Font instance.

I need that specific FontFamily istance (or the ability to istantiate an equivalent instace).

Edited : As asked i used Winform (on windows mobile, so i use NetCF 3.5)

Upvotes: 1

Views: 320

Answers (1)

Fᴀʀʜᴀɴ Aɴᴀᴍ
Fᴀʀʜᴀɴ Aɴᴀᴍ

Reputation: 6251

You can use this to get the FontFamily of a Font:

FontFamily ff = oldFont.FontFamily;

Update - In .NET CF, all classes are optimized for minimal resource usage. The FontFamily property, thus does not exist in the Font class.

Upvotes: 1

Related Questions