Re: Set extra_flags for embolden and hint metrics

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Fri, 16 Dec 2011 04:40:43 +0000 (GMT), Deokjin Kim <[email protected]> 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
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.