On 09/16/2009 02:16 AM, Ken Resander wrote:
I really wanted a PangoContext that is not associated with a widget, so
the calculations can be carried out totally 'offline'. I could not see
how to do that.
If anyone knows, I would be interested in finding out.
pango_cairo_font_map_create_context
I also had a similar problem. Here is how I ended up doing it...
extern GttWidget * curdlg; // of current dialog
void gettextwdht ( char * family , int ptsize , int weight , bool normalstyle ,
char * stringtomeasure ,
int * wdret , int * htret )
{
Pan
Hi,
I'm banging my head trying to figure out how to measure the text width
of a string to be displayed in a GtkCelRendererText. From the code
I've found, I need a PangoContext and GtkCelRendererText has plenty of
Pango properties but none that return a PangoContext. In addition,
GtkCelRendererTex