[cairo] Fwd: How can I enable synthetic bold in cairo?

Deokjin Kim deokjin81.kim at samsung.com
Wed Nov 16 00:20:49 PST 2011


(sorry for double mail, you can't read my mail in cairo web site because previous mail uses html format)

------- Original Message -------
Sender : 김덕진<deokjin81.kim at samsung.com> S4(선임)/선임/S/W Platform Lab(DMC연)/삼성전자
Date : 2011-11-16 16:56 (GMT+09:00)
Title : [cairo] How can I enable synthetic bold in cairo?

Hello everyone,

I want to enable synthetic bold in cairo.
In _cairo_ft_scaled_glyph_init API, I can use FT_GlyphSlot_Embolden if scaled_font->ft_options.extra_flags has CAIRO_FT_OPTIONS_EMBOLDEN flag.
But this approach is only supported for cairo_ft_font_face_create_for_pattern.
Actually I use cairo_ft_font_face_create_for_ft_face API for creating font face.
So I suggest to add addtional parameter(cairo_ft_extra_flags_t) to cairo_ft_font_face_create_for_ft_face to enable synthetic bold.

* current code
cairo_font_face_t *
cairo_ft_font_face_create_for_ft_face (FT_Face         face,
           int             load_flags)
{
...
    //current code always set extra_flags as zero.
    ft_options.extra_flags = 0;
...
}

* My suggestion
cairo_font_face_t *
cairo_ft_font_face_create_for_ft_face (FT_Face         face,
           int             load_flags, cairo_ft_extra_flags_t extra_flags)
{
...
    ft_options.extra_flags = extra_flags;
...
}

Please give me some feedback.
Thank you in advance.

BR,
Deokjin Kim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Attach1.1.txt
Type: application/octet-stream
Size: 102 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20111116/77ce06d3/attachment.obj>


More information about the cairo mailing list