Pango manual rendering

2014-08-01 Thread Edu García
Hi, I want to use Pango for layout, but not for rendering. I have a proof of concept that works, but I think it's not the right way of doing things :) I create a PangoLayout with my text, then get a PangoLayoutIter, then I start calling next_line() on it until it returns FALSE. On every

Re: Pango manual rendering

2014-08-01 Thread Behdad Esfahbod
On 14-08-01 11:04 AM, Edu García wrote: Hi, I want to use Pango for layout, but not for rendering. I have a proof of concept that works, but I think it's not the right way of doing things :) I create a PangoLayout with my text, then get a PangoLayoutIter, then I start calling next_line()

Re: Pango manual rendering

2014-08-01 Thread Edu García
Thank you for your response. That's how I'm using the geometry right now, but I don't seem to get things like alignment work. Even after setting a width on my layout, with right alignment I get the exact same result as with left alignment (I assumed the first glyph will get a very big X offset,