aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRyan Dwyer <RyanDwyer@users.noreply.github.com>2018-09-23 09:44:30 +1000
committerGitHub <noreply@github.com>2018-09-23 09:44:30 +1000
commit1b32eadbc165f211ed45df2ab0622f730eb40932 (patch)
tree84a7dc1f1ae1b58cf6c0d1d5d0094147cfa59d58 /common
parentd101f3d3577eb44312d55e3d4e40adc7e688f473 (diff)
parent53b5c4791e8ad04f3761133005463990eb949ea9 (diff)
Merge branch 'master' into commands
Diffstat (limited to 'common')
-rw-r--r--common/pango.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/pango.c b/common/pango.c
index 5afd72d8..ba74692e 100644
--- a/common/pango.c
+++ b/common/pango.c
@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "cairo.h"
#include "log.h"
#include "stringop.h"
@@ -113,6 +114,10 @@ void pango_printf(cairo_t *cairo, const char *font,
va_end(args);
PangoLayout *layout = get_pango_layout(cairo, font, buf, scale, markup);
+ cairo_font_options_t *fo = cairo_font_options_create();
+ cairo_get_font_options(cairo, fo);
+ pango_cairo_context_set_font_options(pango_layout_get_context(layout), fo);
+ cairo_font_options_destroy(fo);
pango_cairo_update_layout(cairo, layout);
pango_cairo_show_layout(cairo, layout);
g_object_unref(layout);