[cairo] bolding FT_Faces in cairo

Behdad Esfahbod behdad at behdad.org
Sat Apr 19 20:03:40 PDT 2008

On Sat, 2008-04-19 at 04:51 -0400, Stuart Parmenter wrote:
> uh, yeah, with the patch...
> On Sat, Apr 19, 2008 at 1:47 AM, Stuart Parmenter <stuartp at gmail.com>
> wrote:
>         Hey Guys,
>         Here in Mozilla land we needed a way to use embolden with
>         cairo and FT_Faces.  I've added code to support FC_FT_FACE on
>         the FcPattern as well as added a cairo_ft_font_face_embolden
>         function that returns a bold version of a cairo_font_face_t.
>         In addition, I was hitting some problems with creating
>         multiple unscaled fonts for a single FT_Face, so I added it to
>         the hashtable so cairo would return the same unscaled font if
>         you call create_for_ft_face a lot.
>         comments welcome!

Thanks Stuart!  I like the patch generally, and this sure has been a
missing feature.  OO.o asked for it too.  I don't like the embolen()
function though.  How about a more generic font-face constructor that
takes an FT_Face and load-flags?

>         stuart


"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759

More information about the cairo mailing list