To Albrecht :

I will investigate and get back to all about any memory leaks later.
Your helpful advice about using fl_measure() has nearly made
"creating and deleting windows over and over again" redundant.
I was close to a complete solution to my actual problem

void getMaxWHXY(int& pPixelW,int& pPixelH,int& pTextX,int& pTextY,int pFont)

when I got side tracked and had to fresh install ubuntu 12.04 + reconfigure 
various packages.
Now.

static int G_usesymbols = 1;
cMeasure(int& pPixlW, int& pPixlH,const char* pStr, Fl_Font pFont, Fl_Fontsize 
pFontSize) {
  fl_font(pFont, pFontSize);
  fl_measure(pStr, pPixlW, pPixlH, G_usesymbols);
}  // gregs function stolen from the doco

previously used to give different results for different pFontSize's
Now all fontsizes return font 10 results.

This feels like a graphics library problem. (Ubuntu Software Centre found NO 
FLTK - only FLUID)
so I used Ubuntu Software Centre to install FLUID which I assume installs FLTK.

I un tar'd fltk-1.3.x-r9625 as I would prefer to have this as the only version.
My test program worked before the fresh install (12.04) but now has ONLY font 
10.

What (graphics??) Libraries am I missing ? Is this a Ubuntu problem ?
I suspect I must install some more standard packages. If so What ?

David

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to