[GIS] Line spacing at print composer

print-composerqgistext;

I'm using a text box in the print composer (QGIS 2.16). If I write more then one line, how can I set the line spacing between the lines?

Best Answer

I don't think you can - not with a text box at least. (QGIS 2.18.3) By text box, I'm assuming you mean 'label'

But you can use an HTML frame, and a bit of CSS instead.

This will give you more typographic control, and let you define line spacing in pixels, mm, ems etc.

Something like this, which double-spaces lines. You can use the line-height css style to change the spacing...

<style>
    p {
        line-height:2em;
    }
</style>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
Related Question