From 238cd14f991b00a9499e1bd4b6a1d9a27113e16d Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Mon, 11 Jun 2007 23:12:09 +0000 Subject: [PATCH] Implement is_synthesized for the ATSUI backend. 2007-06-12 Richard Hult * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized): Implement is_synthesized for the ATSUI backend. svn path=/trunk/; revision=2343 --- ChangeLog | 5 +++++ pango/pangoatsui-fontmap.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6297e1c..87e7025 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-12 Richard Hult + + * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized): + Implement is_synthesized for the ATSUI backend. + 2007-06-11 Behdad Esfahbod Bug 440588 – Add pango_font_face_is_synthesized() diff --git a/pango/pangoatsui-fontmap.c b/pango/pangoatsui-fontmap.c index ee15307..8510864 100644 --- a/pango/pangoatsui-fontmap.c +++ b/pango/pangoatsui-fontmap.c @@ -351,6 +351,14 @@ pango_atsui_face_finalize (GObject *object) G_OBJECT_CLASS (pango_atsui_face_parent_class)->finalize (object); } +static gboolean +pango_atsui_face_is_synthesized (PangoFontFace *face) +{ + PangoATSUIFace *atsuiface = PANGO_ATSUI_FACE (face); + + return atsuiface->synthetic_italic; +} + static void pango_atsui_face_class_init (PangoFontFaceClass *class) { @@ -363,6 +371,7 @@ pango_atsui_face_class_init (PangoFontFaceClass *class) class->describe = pango_atsui_face_describe; class->get_face_name = pango_atsui_face_get_face_name; class->list_sizes = pango_atsui_face_list_sizes; + class->is_synthesized = pango_atsui_face_is_synthesized; } GType -- 2.7.4