summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hult <richard@imendio.com>2007-06-11 23:12:09 +0000
committerRichard Hult <rhult@src.gnome.org>2007-06-11 23:12:09 +0000
commit238cd14f991b00a9499e1bd4b6a1d9a27113e16d (patch)
treea5f77652519db17dcd8b528ef197c9745c38b278
parent170c2994edd9537000790e5fe989030af35ce3c5 (diff)
downloadpango-238cd14f991b00a9499e1bd4b6a1d9a27113e16d.tar.gz
Implement is_synthesized for the ATSUI backend.
2007-06-12 Richard Hult <richard@imendio.com> * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized): Implement is_synthesized for the ATSUI backend. svn path=/trunk/; revision=2343
-rw-r--r--ChangeLog5
-rw-r--r--pango/pangoatsui-fontmap.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6297e1cb..87e7025d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-12 Richard Hult <richard@imendio.com>
+
+ * pango/pangoatsui-fontmap.c (pango_atsui_face_is_synthesized):
+ Implement is_synthesized for the ATSUI backend.
+
2007-06-11 Behdad Esfahbod <behdad@gnome.org>
Bug 440588 – Add pango_font_face_is_synthesized()
diff --git a/pango/pangoatsui-fontmap.c b/pango/pangoatsui-fontmap.c
index ee153074..85108641 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