diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-06-11 22:58:50 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-06-11 22:58:50 +0000 |
commit | 170c2994edd9537000790e5fe989030af35ce3c5 (patch) | |
tree | 18973ecc163a7567bf34711c3424b11b51c2dd6e /pango/fonts.c | |
parent | ca3fe5ba103c1a06af569a8214c531e124b733df (diff) | |
download | pango-170c2994edd9537000790e5fe989030af35ce3c5.tar.gz |
Bug 440588 – Add pango_font_face_is_synthesized()
2007-06-11 Behdad Esfahbod <behdad@gnome.org>
Bug 440588 – Add pango_font_face_is_synthesized()
* pango/pango-font.h:
* pango/fonts.c:
New PangoFontFace method is_synthesized.
New public API:
pango_font_face_is_synthesized()
* pango/pangofc-fontmap.c (pango_fc_face_is_synthesized):
Implement new method.
* docs/pango-sections.txt:
* docs/tmpl/fonts.sgml:
* pango/pango.def:
Update.
svn path=/trunk/; revision=2342
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 3e63096f..c426b7fc 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1773,6 +1773,29 @@ pango_font_face_describe (PangoFontFace *face) } /** + * pango_font_face_is_synthesized: + * @face: a #PangoFontFace + * + * Returns whether a #PangoFontFace is synthesized by the underlying + * font rendering engine from another face, perhaps by shearing, emboldening, + * or lightening it. + * + * Return value: whether @face is synthesized. + * + * Since: 1.18 + **/ +gboolean +pango_font_face_is_synthesized (PangoFontFace *face) +{ + g_return_val_if_fail (PANGO_IS_FONT_FACE (face), NULL); + + if (PANGO_FONT_FACE_GET_CLASS (face)->is_synthesized != NULL) + return PANGO_FONT_FACE_GET_CLASS (face)->is_synthesized (face); + else + return FALSE; +} + +/** * pango_font_face_get_face_name: * @face: a #PangoFontFace. * |