Author: rjek
Date: Fri Feb 20 05:21:28 2009
New Revision: 6572
URL:
http://source.netsurf-browser.org?rev=6572&view=rev
Log:
Enable autohinter. Greatly improves glyph quality in framebuffer port. Also get FreeType
to render at same time as loading.
Modified:
trunk/netsurf/framebuffer/fb_32bpp_plotters.c
Modified: trunk/netsurf/framebuffer/fb_32bpp_plotters.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/framebuffer/fb_32bpp_plot...
==============================================================================
--- trunk/netsurf/framebuffer/fb_32bpp_plotters.c (original)
+++ trunk/netsurf/framebuffer/fb_32bpp_plotters.c Fri Feb 20 05:21:28 2009
@@ -266,14 +266,12 @@
nxtchr = utf8_next(text, length, nxtchr);
glyph_index = FT_Get_Char_Index(face, ucs4);
- error = FT_Load_Glyph(face, glyph_index, FT_LOAD_DEFAULT);
+ error = FT_Load_Glyph(face, glyph_index, FT_LOAD_RENDER |
+ FT_LOAD_MONOCHROME |
+ FT_LOAD_FORCE_AUTOHINT);
if (error)
continue;
- error = FT_Render_Glyph(face->glyph, FT_RENDER_MODE_MONO );
- if (error)
- continue;
-
/* now, draw to our target surface */
fb_32bpp_draw_ft_bitmap( &face->glyph->bitmap,
x + face->glyph->bitmap_left,