Fwd: How can I enable synthetic bold in cairo?

Deokjin Kim <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
(sorry for double mail, you can't read my mail in cairo web site because previous mail uses html format)

------- Original Message -------
Sender : 김덕진<[email protected]> 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

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
Attach1.1.txt (application/octet-stream, 102 B)
--
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.