Mini
10/05/2022, 3:33 PMBenoit Quenaudon
10/05/2022, 3:34 PMMini
10/05/2022, 3:34 PMBenoit Quenaudon
10/05/2022, 3:36 PMKirill Grouchnikov
10/05/2022, 4:00 PMParagraph
with width-bound constraints
and then see how many lines the text would need for certain max width.
But overall, that’s technical. You need to decide what’s the logic. You can determine the height of one line, so that would be your starting point. Say your total width is 400, and one line is 40 tall. So if your text fully fits into 360 (account for margins, of course), then you’re done. If not, then your image grows to 80 tall, and only 320 left for the two-line text. And so on.
But what if you’re putting a lot of text? At some point, you will need to much vertical space that your image will be too tall and too wide. So you’d probably want to limit how tall your image gets, so you still leave at least some space for the text.ephemient
10/05/2022, 4:07 PM┌─────────────┐
│foo bar baz □│
└─────────────┘
┌─────────────┐
│foo bar ┌─┐│
│baz └─┘│
└─────────────┘
satisfy your requirements, or as Kirill's says, where nothing satisfies your requirements.Mini
10/05/2022, 4:10 PMKirill Grouchnikov
10/05/2022, 4:11 PMParagraph
on how many lines you’ll need