Convert font to string and then back again...
-
Hello, i have an application where my user changes font and font color for different labels etc and they save it to a file but i need to be able to convert the font of the specified label to a string to be written to file, and then when they open that file my program will convert that string back into a font object. How can this be done? I haven't found anywhere that shows how it can be done. thank you bael
-
Hello, i have an application where my user changes font and font color for different labels etc and they save it to a file but i need to be able to convert the font of the specified label to a string to be written to file, and then when they open that file my program will convert that string back into a font object. How can this be done? I haven't found anywhere that shows how it can be done. thank you bael
You have to do this yourself by creating a data structure or string that contains all the font characteristics. You then write that alongside your text, and when you read the file back, reinterpret the font details to display the text in the way you want.
MVP 2010 - are they mad?