Vaclav Slavik schrieb:
> Hi,
> 
> there's a bug in [CVS version of] the FT2 font provider when using 
> Freetype build that only contains the monochrome ("raster") but not 
> the grayscale ("smooth") rasterizer. DFB fails to render any text in 
> this case, even though DFFA_MONOCHROME flag is used.
> 
> This is because even though load flags correctly contain 
> FT_LOAD_TARGET_MONO, the get_glyph_info() function calls 
> FT_Render_Glyph(face->glyph, ft_render_mode_normal) regardless of the 
> flags. Attached patch fixes this by using ft_render_mode_mono if mono 
> rendering was requested.
> 
> This should also make the returned glyph dimensions more accurate in 
> the mono case, because now the exact same renderer that will be used 
> to render the glyph is used to calculate the sizes.

Thanks a lot! Applied it!

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to