summaryrefslogtreecommitdiff
path: root/framebuffer/fb_32bpp_plotters.c
diff options
context:
space:
mode:
authorRob Kendrick <rjek@netsurf-browser.org>2009-02-20 11:21:28 +0000
committerRob Kendrick <rjek@netsurf-browser.org>2009-02-20 11:21:28 +0000
commit0619131f20ad86fe640ea9a1a45d3ae7bf73c1d8 (patch)
tree3104f1da61e72c50306fa86026e9a7100e230539 /framebuffer/fb_32bpp_plotters.c
parentc1235f1e9e5fc5ffdfaaec0111b29c75e7a5a10e (diff)
downloadnetsurf-0619131f20ad86fe640ea9a1a45d3ae7bf73c1d8.tar.gz
netsurf-0619131f20ad86fe640ea9a1a45d3ae7bf73c1d8.tar.bz2
Enable autohinter. Greatly improves glyph quality in framebuffer port. Also get FreeType to render at same time as loading.
svn path=/trunk/netsurf/; revision=6572
Diffstat (limited to 'framebuffer/fb_32bpp_plotters.c')
-rw-r--r--framebuffer/fb_32bpp_plotters.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/framebuffer/fb_32bpp_plotters.c b/framebuffer/fb_32bpp_plotters.c
index 28a6030a9..c5bf45968 100644
--- a/framebuffer/fb_32bpp_plotters.c
+++ b/framebuffer/fb_32bpp_plotters.c
@@ -266,14 +266,12 @@ static bool fb_32bpp_text(int x, int y, const struct css_style *style,
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,