Can I get text width (pixels) from font?
I am writing an application in Intuition. I need to know the width of the text being printed in a TEXT_KIND to see if this is more than the width of the gadget (and then act upon this if so).
For example, given the text "Hello World", is there a way how to know the width that this text will have in pixels for a particular font used? |
graphics.library/TextLength
intuition.library/IntuiTextLength There are also graphics.library/TextExtent graphics.library/TextFit The former tells you more details about the space your text neeeds and the latter tells you how many characters of your text fit into the area. |
Wow! Many thanks. Let me google about them.
Quote:
|
All times are GMT +2. The time now is 16:50. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.