From 6a100fc4973fc1e5c044fb8dc1c55be430cbd707 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 25 Jul 2005 19:30:11 +0000 Subject: Set font options as well. 2005-07-25 Owen Taylor * pango/pangocairo-fcfont.c (pango_cairo_fc_font_install): Set font options as well. * pango/pango-layout.c (line_set_resolved_dir): Always set line->resolved_dir to one of LTR or RTL. (#171439, Reported by Chris Blizzard) --- pango/pangocairo-fontmap.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pango/pangocairo-fontmap.c') diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c index 51681377..14114f7c 100644 --- a/pango/pangocairo-fontmap.c +++ b/pango/pangocairo-fontmap.c @@ -329,6 +329,13 @@ pango_cairo_context_get_resolution (PangoContext *context) return -1.0; } +struct _cairo_font_options { + cairo_antialias_t antialias; + cairo_subpixel_order_t subpixel_order; + cairo_hint_style_t hint_style; + cairo_hint_metrics_t hint_metrics; +}; + /** * pango_cairo_context_set_font_options: * @context: a #PangoContext, from pango_cairo_font_map_create_context() @@ -361,7 +368,7 @@ pango_cairo_context_set_font_options (PangoContext *context, info->merged_options = NULL; } } - + /** * pango_cairo_get_font_options: * @context: a #PangoContext, from pango_cairo_font_map_create_context() -- cgit v1.2.1