[sushi] font-widget: add sushi_font_widget_get_ft_face()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] font-widget: add sushi_font_widget_get_ft_face()
- Date: Sun, 29 Apr 2012 22:07:18 +0000 (UTC)
commit 9c80bcc689d1fb3bbc1497119e2278f58126ecb6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Apr 27 18:34:55 2012 -0400
font-widget: add sushi_font_widget_get_ft_face()
We want to share the font objects we have with gnome-font-viewer; this
is needed there.
src/libsushi/sushi-font-widget.c | 11 ++++++++++-
src/libsushi/sushi-font-widget.h | 3 +++
2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/libsushi/sushi-font-widget.c b/src/libsushi/sushi-font-widget.c
index 1005559..6059878 100644
--- a/src/libsushi/sushi-font-widget.c
+++ b/src/libsushi/sushi-font-widget.c
@@ -28,7 +28,6 @@
#include "sushi-font-widget.h"
#include "sushi-font-loader.h"
-#include <cairo/cairo-ft.h>
#include <math.h>
enum {
@@ -591,3 +590,13 @@ sushi_font_widget_new (const gchar *uri)
"uri", uri,
NULL);
}
+
+/**
+ * sushi_font_widget_get_ft_face: (skip)
+ *
+ */
+FT_Face
+sushi_font_widget_get_ft_face (SushiFontWidget *self)
+{
+ return self->priv->face;
+}
diff --git a/src/libsushi/sushi-font-widget.h b/src/libsushi/sushi-font-widget.h
index 1edd524..2120bc5 100644
--- a/src/libsushi/sushi-font-widget.h
+++ b/src/libsushi/sushi-font-widget.h
@@ -30,6 +30,7 @@
#include <glib-object.h>
#include <gtk/gtk.h>
+#include <cairo/cairo-ft.h>
G_BEGIN_DECLS
@@ -60,6 +61,8 @@ GType sushi_font_widget_get_type (void) G_GNUC_CONST;
SushiFontWidget *sushi_font_widget_new (const gchar *uri);
+FT_Face sushi_font_widget_get_ft_face (SushiFontWidget *self);
+
G_END_DECLS
#endif /* __SUSHI_FONT_WIDGET_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]