From: Ben Pfaff Date: Fri, 11 Oct 2019 04:57:45 +0000 (+0000) Subject: cairo: Make footnote markers smaller than normal text size. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b617e090556354840dbfd5fcac89ae9a7e090c9b;p=pspp cairo: Make footnote markers smaller than normal text size. --- diff --git a/src/output/cairo.c b/src/output/cairo.c index f959e14c2d..2b6ae706c5 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1548,7 +1548,8 @@ xr_layout_cell_text (struct xr_driver *xr, const struct table_cell *cell, pango_layout_set_text (font->layout, marker, strlen (marker)); PangoAttrList *attrs = pango_attr_list_new (); - pango_attr_list_insert (attrs, pango_attr_rise_new (7000)); + pango_attr_list_insert (attrs, pango_attr_scale_new (PANGO_SCALE_SMALL)); + pango_attr_list_insert (attrs, pango_attr_rise_new (3000)); pango_layout_set_attributes (font->layout, attrs); pango_attr_list_unref (attrs); @@ -1595,7 +1596,8 @@ xr_layout_cell_text (struct xr_driver *xr, const struct table_cell *cell, if (font_style->underline) pango_attr_list_insert (attrs, pango_attr_underline_new ( PANGO_UNDERLINE_SINGLE)); - add_attr_with_start (attrs, pango_attr_rise_new (7000), initial_length); + add_attr_with_start (attrs, pango_attr_scale_new (PANGO_SCALE_SMALL), initial_length); + add_attr_with_start (attrs, pango_attr_rise_new (3000), initial_length); add_attr_with_start ( attrs, pango_attr_font_desc_new (font->desc), initial_length); pango_layout_set_attributes (font->layout, attrs);