Converting text into image
-
Dear friends, I've developed an application in VC++/MFC. It is basically a text editor. You can type text message in it, and save the file. The speciality is that this application uses special fonts that i designed. Actually, the problem is that, if i try to open the file on a computer where my font is not present, the file is obviously not readable. Now what i want is that my application that generates this file, saves it as an image instead of text, so that it can me readable on some other machine where the font is not installed. Is it possible to save text file as an image (jpg, or gif)??? Is there any sample code present here ?? Or any other advice from your part ???
-
Dear friends, I've developed an application in VC++/MFC. It is basically a text editor. You can type text message in it, and save the file. The speciality is that this application uses special fonts that i designed. Actually, the problem is that, if i try to open the file on a computer where my font is not present, the file is obviously not readable. Now what i want is that my application that generates this file, saves it as an image instead of text, so that it can me readable on some other machine where the font is not installed. Is it possible to save text file as an image (jpg, or gif)??? Is there any sample code present here ?? Or any other advice from your part ???
What about converting to .pdf or .ps? I think there are some utilities to convert it in codeproject. Another solution would be to generate an image. For that, i think you can create an image object of some kind, like CBitmap (or CMemDC??), and PAINT in to it, like you would do if it was a printer. Of course, if your doc has multiple pages, it will require multiple images. After that, you can save the data to a file.