Link to home
Start Free TrialLog in
Avatar of skanade
skanade

asked on

Saving TFont object in registry

I want to save a TFont object as binary data in registry. I don't want to separately store its style, name, etc. Instead, if its inheritance from TPersistent can help in some way through TMemoryStream, perhaps, it would be great. This TFont object is changed based on user's selection and hence I want to remember the user's preference.

Any idea how to do it in a clean way?

ASKER CERTIFIED SOLUTION
Avatar of vladika
vladika

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of skanade
skanade

ASKER

>>But WHY do you not want to separately store font properties?

My application allows the user to select a font for printing out plain text file reports. I want to remember the font in the registry. I am already remembering many user preferences in the registry and have avoided the use of an INI file as per the new standards.

Thanks!
Sanjay