From: "doug" Newsgroups: comp.os.msdos.djgpp Subject: Re: TTF font libraries? Date: 31 May 2000 18:52:56 GMT Organization: Rijksuniversiteit Groningen Lines: 30 Message-ID: <01bfcbfb$ae3e1fc0$a7247d81@default> References: <8gvf9v$68rg$1 AT newssvr04-int DOT news DOT prodigy DOT com> <01bfcb32$adcd9d00$c0247d81 AT default> <8h1h5l$57iq$1 AT newssvr04-int DOT news DOT prodigy DOT com> NNTP-Posting-Host: client36-167.oprit.rug.nl X-Trace: info.service.rug.nl 959799176 5713 129.125.36.167 (31 May 2000 18:52:56 GMT) X-Complaints-To: newsmaster AT rug DOT nl NNTP-Posting-Date: 31 May 2000 18:52:56 GMT X-Newsreader: Microsoft Internet News 4.70.1155 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Robert Boles 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