projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2733e64
)
cairo: Make footnote markers smaller than normal text size.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 11 Oct 2019 04:57:45 +0000
(
04:57
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 29 Dec 2019 05:28:10 +0000
(
05:28
+0000)
src/output/cairo.c
patch
|
blob
|
history
diff --git
a/src/output/cairo.c
b/src/output/cairo.c
index f959e14c2d37f091694ea704a015cdca3c1c2f75..2b6ae706c53a0912ae962f2f858d185471809f71 100644
(file)
--- 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_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);
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));
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);
add_attr_with_start (
attrs, pango_attr_font_desc_new (font->desc), initial_length);
pango_layout_set_attributes (font->layout, attrs);