I want two paragraphs with different styles of text, one above the other. This is the quickest way to describe it:
<p style="font-size: 20pt">Para 1</p><p style="font-size: 10pt">Para 2</p>
I am setting line-wrap on both, so I do not know what height the first will be until run-time. If I have many lines in paragraph 1, I will want to move paragraph 2 down. If I have one line in paragraph one, I want to move paragraph 2 up. As HTML would behave.
But it appears I can only set one font style per Layout using pango_layout_set_font_description(PangoLayout *, PangoFontDescription *).
- Does this mean I need to use 2 layouts?
- If so, how do I get the second layout to appear immediately under the second one? Do I need to use
pango_layout_get_height(PangoLayout *)and move the second layout accordingly?