Mail Archives: djgpp/2000/05/30/19:30:12
Hello, First off, I would like to say that it is a great library, but It may
not be exactly what I am looking for. So here goes.
I would like to load in a font type once. Say Times.ttf. I use the
TTF2PCX.exe util, and scale it up to 100 pixels. I then use the grabber to
grab the font. This way I can ship many fonts, and have them compressed in a
single Dat file. Easy to use.
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.
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.
I can put the OS on a web site for download if anyone wants to see the
actual output. Like I said, its not bad, just not great. Any suggestions
would be great.
Remember this is an OS. Zillions of fonts with unlimited number sizes need
to be available. Like TTF in windows. Any Ideas on this would be great. Like
I said, I am close, but no cigar.
"doug" <deleveld AT dds DOT nl> wrote in message
news:01bfcb32$adcd9d00$c0247d81 AT default...
> Robert Boles <zingen AT prodigy DOT net> schreef in artikel
> <8gvf9v$68rg$1 AT newssvr04-int DOT news DOT prodigy DOT com>...
> >
> > Hello,
> > I am making a DJGPP/Allegro based OS, and I have hit a major stumbling
> > block.
> >
> > Are there any ttf font lib's available. I have tried using allegttf, but
> the
> > quality of the output is not good enough for a good GUI. It is a good
> start,
>
> What do you mean the quality is not good enough? Can you give me some
> output
> of Allegttf and what kind of output you expect? IIRC Allegttf uses the
> freetype 1.3.something so output quality should be pretty good.
>
> Freetype antialiasing makes fonts look good at small pixel sizes. It's
> pretty hard to get better output than it makes. Maybe you need a higher
> resolution...
>
> Please try to be more specific what you mean by 'quality of the output is
> not good enough'
>
> Thanks,
>
> Doug Eleveld
- Raw text -