diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-26 16:36:46 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-26 18:50:28 +0100 |
commit | 7568edf4b1dd0f8c1b061a2bb53d593ff9d4d33d (patch) | |
tree | 4af722acb1d8b77c6eff7560a436f61a55f11891 /lib | |
parent | ae461e67e8816aa7cd80791216a839d92e04f0e5 (diff) |
lib/igt_fb: setup font in igt_get_cairo_ctx
We always want the same boring one, so extract it.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 4289b50c..60b582fb 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -382,7 +382,10 @@ cairo_t *igt_get_cairo_ctx(int fd, struct igt_fb *fb) surface = get_cairo_surface(fd, fb); cr = cairo_create(surface); cairo_surface_destroy(surface); + igt_assert(cairo_status(cr) == CAIRO_STATUS_SUCCESS); + cairo_select_font_face(cr, "Helvetica", CAIRO_FONT_SLANT_NORMAL, + CAIRO_FONT_WEIGHT_NORMAL); igt_assert(cairo_status(cr) == CAIRO_STATUS_SUCCESS); return cr; |