summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-24 08:40:37 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-24 08:40:37 +0100
commitb63e417e38cd3df85ee5d64d38b96f981c104122 (patch)
tree757edf5cc1cabdb131a382dd8094ffed466bf67a /include
parent2060ba8fd84b7b9e23e1180467309ac8f85696f0 (diff)
Add configurable fonts for testing. #544
Diffstat (limited to 'include')
-rw-r--r--include/widgets/textbox.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/widgets/textbox.h b/include/widgets/textbox.h
index d81d8806..32dc9969 100644
--- a/include/widgets/textbox.h
+++ b/include/widgets/textbox.h
@@ -39,6 +39,8 @@ typedef struct
int update;
int blink;
guint blink_timeout;
+
+ PangoFontMetrics *metrics;
//
const char *theme_name;
} textbox;
@@ -237,11 +239,12 @@ void textbox_moveresize ( textbox *tb, int x, int y, int w, int h );
*/
int textbox_get_estimated_height ( const textbox *tb, int eh );
/**
+ * @param font The name of the font used.
* @param p The new default PangoContext
*
* Set the default pango context (with font description) for all textboxes.
*/
-void textbox_set_pango_context ( PangoContext *p );
+void textbox_set_pango_context ( const char *font, PangoContext *p );
/**
* @param tb Handle to the textbox
* @param list New pango attributes