X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.c;h=4584181d32a3a779365e7993682010c2231fe544;hb=e6bb779b866f297b736a7f93a0c8aa741131726f;hp=32369a7a0e5071e609cfbf863fc3981e676c8d8a;hpb=d523d6fa44e79bbca2b2cce792a7f25cca0d3aef;p=pspp diff --git a/src/output/cairo.c b/src/output/cairo.c index 32369a7a0e..4584181d32 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1225,11 +1225,11 @@ xr_layout_cell_text (struct xr_driver *xr, const struct table_cell *cell, : options & TAB_EMPH ? &xr->fonts[XR_FONT_EMPHASIS] : &xr->fonts[XR_FONT_PROPORTIONAL]); struct xr_font local_font; - if (cell->style->font) + if (cell->style->typeface) { PangoFontDescription *desc = parse_font ( - style->font, - style->font_size ? style->font_size * 1000 * 72 / 128 : 10000, + style->typeface, + style->size ? style->size * 1000 * 72 / 128 : 10000, style->bold, style->italic); if (desc) {