Mail Archives: djgpp/2000/05/31/15:15:24
Robert Boles <zingen AT prodigy DOT net> schreef in artikel
<8h1h5l$57iq$1 AT newssvr04-int DOT news DOT prodigy DOT com>...
> I then use the Allegttf library inside a function to output the text. The
> text at 100 pixels looks great, but I have no way of scaling it down. It
> gets mangled in the scale down process.
What do you mean by mangled?
There isn't really a way to scale it down to low pixel sizes without
making the font look different. Freetype put lots of effort into making
fonts at small pixel sizes look good by using hinting. There simply aren't
enough pixels available at small font sizes to get a 'good' looking font.
Freetype does it reasonably well, and you probably won't get much
better without *lots* of work.
> So my Textoutput function creates a bitmap. prints the text on this
bitmap
> at 100 pixels high. it then masked_blits the bitmap to the destination,
> scaling down to the text size, lets say 10 pixels. It works perfect, I
can
> read the font, it is Exactly the right height and width, the smooth
curves
> of the fonts just get mangled. You can still read it, but I am sooooo
close.
> I just would love to go that extra foot.
Are you sure that there are enough pixels to draw what you want?
Doug
- Raw text -