summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-surface.c
diff options
context:
space:
mode:
authorLukáš Lalinský <lukas@oxygene.sk>2014-09-03 22:53:55 +0200
committerUli Schlachter <psychon@znc.in>2014-09-12 18:19:44 +0200
commite691d242d592a8556e25659fb091a2031abee4c9 (patch)
tree9959ed9f811921417828d436f1a0fa0dd2a6e763 /src/cairo-xcb-surface.c
parente77d0a5611fedce2bfa0940ff62f003c1f9cfa08 (diff)
downloadcairo-e691d242d592a8556e25659fb091a2031abee4c9.tar.gz
xcb: Initialize font options from Xft resources
There is a similar code in the Xlib backend. The logic here is the same, but XCB doesn't support X resources directly, so there is some custom code to get and parse the resources from the root window. Signed-off-by: Lukáš Lalinský <lukas@oxygene.sk> Reviewed-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-xcb-surface.c')
-rw-r--r--src/cairo-xcb-surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index 02e7a1982..d7e0d734e 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -530,9 +530,9 @@ static void
_cairo_xcb_surface_get_font_options (void *abstract_surface,
cairo_font_options_t *options)
{
- /* XXX copy from xlib */
- _cairo_font_options_init_default (options);
- _cairo_font_options_set_round_glyph_positions (options, CAIRO_ROUND_GLYPH_POS_ON);
+ cairo_xcb_surface_t *surface = abstract_surface;
+
+ *options = *_cairo_xcb_screen_get_font_options (surface->screen);
}
static cairo_status_t