RE: FreeType
"Ignacio Castano" <[email protected]> Tue, 3 Jan 2006 15:12:41 -0800
| Newsgroups | gmane.games.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Brian, I think that the issues you are seen could be related to the freetype autohinter. I got much better looking results with the patented bytecode hinter. However, that was some time ago and since then I've heard that the autohinter has become much better and produces comparable results now. If you are going to generate strings or words on the fly using the autohinter might not be an option, but if you dynamically link freetype you just leave that up to the user. -- Ignacio CastaƱo [email protected] > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On > Behalf Of Brian Hook > Sent: Monday, January 02, 2006 11:17 PM > To: [email protected] > Subject: Re: [GD-General] FreeType > > > I believe the problem you are seeing is that the fonts are small > > _and_ antialiased. > > Well, yeah. But un-antialiased and they look bad, just in a > different > way =) > > I ended up hacking a simple Python package that lets me render a > string in a given font to a buffer, which I can then insert into a > texture. I don't have the higher level string caching in place, but > so far the results are very promising in terms of quality. > The API is > pretty brute force simple: > > import winfont > > f = winfont.createfont( 'Courier New', height=16,italic=True) > buf,w,h = f.render('Hello world!',(255,255,255),(64,64,64)) > surf = pygame.image.fromstring( buf, w, h, "RGBX", True ) > pygame.image.save( surf, 'test.tga') > > I'll worry about the string caching and subtex modifications next and > see if this is all everyone claims it is =) > > Brian > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick > _______________________________________________ > Gamedevlists-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gamedevlists-general > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_idU7 > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Gamedevlists-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7