1 matches
you dont have to put them on zip DRIVE... you have to UNZIP them
.zip is a compressed file format not a zip drive
to unzip .zip files you need winzip or similar program www.winzip.com
once you have the prog, double-click on the .zip file and extract the actual .ttf (font) files.
go to the location you chose to extract your font files to and copy them into your WINDOWS/FONTS directory
you might have to restart ioen applications to be able to use the new fonts
let me know if you need more help
Alex
1 matches
Thanks Alex, but I'm not trying to do any of the things that you have mentioned. My program doesn't need to print that anywhere on the screen. My program shows a small preview of the font which the user has selected, but there are absolutely no problems with this, you need not worry about this one!
What I want to do is to get the BITMAP of a character of the font, convert it to something else and save it in a file.[/b:d5ff16e12b] The bitmap which will be returned by GetGlyphOutline() with GGO_BITMAP will be in two-color format.
My trouble is that I'm not able to initialize the DCs in a correct way, that's why I think I'm getting zero as return value. Since the character will not be printed anywhere on the screen, how should I initialize the DCs? If it requires some HANDLE, what should this handle be? [/b:d5ff16e12b]
In short, I want to know (with statements :) )how to do all this:
1) Initialize the DC that I have created - CDC dc;
2) When to select a font into it, using select object
3) Do I need to create a compatible DC, using CreateCompatibleDC();? And how?
4) Which DC's GetGlyphOutline() function to use - dc 's or the compatible dc's?
Just in case you wanted to know, my application is MFC based.
Thanks for the earlier replies, but my prog doesn't do any of that stuff.
1 matches
If you need to convert PC ttf fonts to MAC ttf fonts here is your solution: TT Convertor 1,5 - This program converts all the PC-fonts into MAC-fonts. And, it is freeware. http://home.swipnet.se/highsite/programs/prog.html
Mac truetype to PC (Windows) truetype conversion is usually easily done without any special software. You can do it in a text editor at least if that editor permits some viewing of binary data. Just go to the top and find the first occurrence of these hexadecimal bytes: 00 01 00 00 00, usually a bit before the first pieces of readable text such as LTSH, OS/2, NVDM, cmap, fpgm, gasp, and so on. There may be more than one such sequence, so iterate. Remove everything before that hexadecimal sequence. Save and you have a Windows truetype font.
A free hexeditor can be found here: http://www.hhdsoftware.com/hexeditor.html
Have fun and ... be nice to the cats.
|
Related keywords (10)
|