Hi All,
I have a C# application which converts the Font to String using FontConverter class and writes to a file.
Now, i need to read this file in MFC application and convert the written Font (as string) to CFont object.
In short, i need to implement the below in MFC.
FontConverter fontConverter = new FontConverter();
Font font = fontConverter.ConvertFromInvariantString(fontData) as Font;
Any help would be highly appreciated.
Thanks,
Kishor
What I have tried:
Till now, i read the string as is and parsed to required contents.
For example if the string is "Monotype Corsiva, 15.75pt, style=Bold, Italic" i parsed seperately and created CFont object.
Is there any better way ?