RE: [GD-General] Scaling GUI graphics
Brought to you by:
vexxed72
From: Gareth L. <GL...@cl...> - 2002-06-25 15:16:11
|
> > I've never tried this, but WMFs for example are very well > Er, what's a WMF? WMFs are Window Meta Files or something like that, you have WMF files if you installed the graphics stuff that comes with MSDEV. You will find info at http://www.wotsit.org and in MSDN (OleLoadPicture is a good place to start) > > For fonts just use proper ttf. > Is there a good open source library that can rasterize a TTF into a > bitmap? I know of SDL_ttf, but I'm not sure how good it is. There is lots of ttf stuff, at the least you can just use GDI to rasterize the alphabet to a surface and use that for font stuff. RTFM about GetCharABCWidths() and DrawText() to do proper mapping. We use this stuff to create our bitmapped fonts, and it allows us to get the correct kerning(sp?) and stuff for all letters, so our bitmapped fonts look as good as ttfs do in windows. > > If you insist on bitmap graphics > Well, there is that whole "texture maps are handy" bit ;) Well I never said you wouldn't have bitmaps at the _END_ (i.e. before you draw) I meant pre-made bitmap graphics. ___________________ Regards, Gareth Lewin |