Comment 7 for bug 830801

Revision history for this message
Anthony Wong (anthonywong) wrote :

I traced the code and suspect it is related to how DrawText in StaticCairoText.cpp uses a smaller width than expected.

In function GetTextExtents, for the case of a gnome-terminal window, logRect.width returns from pango_layout_get_extents is 28800. As PANGO_SCALE is 1024, variable width (logRect.width/PANGO_SCALE) is 28 as it's an int.

Later on in function DrawText, the value of variable width is used for pango_layout_set_width for the same text, which I think is not enough and thus ellipsis shows.

I am not familiar with pango but hopes this gives a direction to where the problem lies.