projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880924c
)
cairo-fsm: Honor displaying footnote markers as subscripts.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 10 Jan 2021 01:57:16 +0000
(17:57 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 10 Jan 2021 02:02:40 +0000
(18:02 -0800)
src/output/cairo-fsm.c
patch
|
blob
|
history
diff --git
a/src/output/cairo-fsm.c
b/src/output/cairo-fsm.c
index 2b47615be58d8fd9010123267e1c6f5014168181..90eb285dd28126e892569ec521a8167808599a2a 100644
(file)
--- a/
src/output/cairo-fsm.c
+++ b/
src/output/cairo-fsm.c
@@
-812,8
+812,11
@@
xr_layout_cell_text (struct xr_fsm *xr, const struct table_cell *cell,
add_attr (attrs, pango_attr_rise_new (-3000), subscript_ofs,
footnote_ofs - subscript_ofs);
if (value->n_footnotes)
- add_attr (attrs, pango_attr_rise_new (3000), footnote_ofs,
- PANGO_ATTR_INDEX_TO_TEXT_END);
+ {
+ bool superscript = pt->look->footnote_marker_superscripts;
+ add_attr (attrs, pango_attr_rise_new (superscript ? 3000 : -3000),
+ footnote_ofs, PANGO_ATTR_INDEX_TO_TEXT_END);
+ }
}
/* Set the attributes, if any. */