Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Cannot dynamically add image after text #286

Open
Dassadar opened this issue Oct 19, 2017 · 1 comment
Open

Cannot dynamically add image after text #286

Dassadar opened this issue Oct 19, 2017 · 1 comment

Comments

@Dassadar
Copy link

Hello,
I am using walkabout version.
I would like to display some text of undefined length, then display on its right an image.
The only way I can see as of now is to:

  1. estimate the text screen size based on font selected and text length
  2. declare a flow of this width
  3. add another flow behind with the image
    Is there a better way to do avoiding the painful step 1 please?
    Thx!
@ccoupe
Copy link

ccoupe commented Oct 20, 2017

Better to move this question to Shoes 3. Might still be an open issue there? Short answer is we tried calculating the rect size of a text string using pango and it was not sufficiently better than (str.length*font_width_guess)+some_padding.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants