I need to be able to calculate the size in pixels of a given piece of text from the font name and point size. Google has not turned up anything I can use as yet (or maybe understand). Clues anyone?

Bob

Assuming you are using MS-Windows, you will probably find something in one of these Font and Text Functions.

Sorry no, on a Linux system. Guess I should have said that at the beginning.

I don't do linux but I do know it has several different gui apis, such as Motif, so you have to be more specific about which one you are using.

Gui api is X11.

I think xruler might be of some help.
it can be found here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.