[cairo] Set extra_flags for embolden and hint metrics

Chris Wilson chris at chris-wilson.co.uk
Wed Feb 29 04:06:25 PST 2012


On Fri, 16 Dec 2011 04:40:43 +0000 (GMT), Deokjin Kim <deokjin81.kim at samsung.com> wrote:
> Hello all,
> 
> I think cairo needs API which sets extra_flags in order to use embolden and hint metrics.
> For use of embolden and hint metrics, below modification is needed. (cairo-ft.h and cairo-ft-font.c)

Exposing cairo internals directly makes for bad API, especially anything
touching cairo-ft-font.c which can best be described as a series of
hacks. ;)

Looking at what is required, which I surmised to be the ability to control
FreeType glyph synthsize on fonts created by
cairo_font_face_create_for_ft_face(), I added some api for that purpose.
After a bit of tidying up of cruft from extra-flags the final result looks
very similar, except for the extra semantic information in the function
names and documentation.

Thanks,
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the cairo mailing list