Calculate size of font, in bar/price coordinate system mode

You should have illustrated what you were trying to achieve in your first post, not in the last one...

If it is worth the hassle or not, depends on you.

If you want to output just a few numbers on the chart in corellation with the chart (i.e. label peaks and bottoms) I would stick to very simple and effective solution which I have suggested above.

If you want to output longer text in some cell/rectangle and be able to align it, precisely format and break into lines - like in the example below:

1

... you need to use GfxDrawText() and GfxSetTextAlign()

https://www.amibroker.com/guide/afl/gfxsettextalign.html

2 Likes