How can I enable synthetic bold in cairo?

김덕진 <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
201111161655420_44YDXKW4.jpg (image/jpeg, 71 KB) - not displayed
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.