empty lines have height 0
Submitted by Peter Frentrup
Link to original bug (#455940)
Description
Please describe the problem: When I lay out text that contains empty lines and the layout object has a font description with more than one font familiy, the empty lines will have height zero.
Steps to reproduce: /* create and init caito_t *cr, PangoLayout *layout ... */ PangoFontDescription *desc = pango_font_description_from_string("Times,Arial 20"); pango_layout_set_font_description(layout, desc); pango_font_description_free(desc);
pango_layout_set_text(layout,"LINE 1\n\nLINE 3",-1);
pango_cairo_show_layout(cr,layout);
Actual results: The layout's font description contains 2 fonts (Times and Arial) with size 20. The output is: LINE 1 LINE 3
Expected results: The output should be: LINE 1
LINE 3
Does this happen every time? Yes, it happens every time when more than one font family is given. It does not happen at all when only one font family is given.
Other information: I am using Pango 1.17.3 on Windows.
Version: 1.17.x