projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31a5848
)
pango fucking cairo resolution!
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 14 Dec 2020 08:00:09 +0000
(
00:00
-0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 14 Dec 2020 08:00:09 +0000
(
00:00
-0800)
src/output/cairo-fsm.c
patch
|
blob
|
history
diff --git
a/src/output/cairo-fsm.c
b/src/output/cairo-fsm.c
index 54b65dd9c02d20ce66d6c59b455856274721a33c..24ae81fbbdead43f144c77f5f78069d7f69e616f 100644
(file)
--- a/
src/output/cairo-fsm.c
+++ b/
src/output/cairo-fsm.c
@@
-632,7
+632,10
@@
xr_layout_cell_text (struct xr_fsm *xr, const struct table_cell *cell,
desc = xr->style->fonts[font_type];
assert (xr->cairo);
- PangoLayout *layout = pango_cairo_create_layout (xr->cairo);
+ PangoContext *context = pango_cairo_create_context (xr->cairo);
+ if (xr->style->font_scale != 1.0)
+ pango_cairo_context_set_resolution (context, 72.0);
+ PangoLayout *layout = pango_layout_new (context);
pango_layout_set_font_description (layout, desc);
const char *text = cell->text;