libera/#clim - IRC Chatlog
Search
17:17:44
maxz
How would I properly center text within a bounding box? I e. g. want to have a 40x40 box drawn with DRAW-RECTANGLE and then center text drawn with DRAW-TEXT within it. I'm having trouble establishing one of them as the outer box. Currently both are on the same hierarchy level and I have to try and center the text "manually". I would hope that once I properly established such an outer box I could center it with the alignment attributes
17:19:50
jackdaniel
I don't understand what do you mean by a panel, but you could i.e (draw-rect 100 100 200 200) and (draw-text 150 150 :align-x :center :align-y :center), is that not what you want?
17:21:52
maxz
Not quite since depending on the text it's not where I would expect it if it was truly centered.
17:23:48
maxz
Actually I think it works. I just did not use :align-y :center in my current version. But if I do it looks alright.
22:10:21
cmack
Is anyone familiar with Ramana Rao's description of silica here? https://dl.acm.org/doi/10.5555/166848.166864 If so, is it still relevant for CLIM2?