The text top left corner is the reference point. I only provided 4 locations to make the initial implementation easier, so you have:
- Top: which puts the text over the top of the point aligned to the left edge of the icon with the bottom just clear of the icon
- Bottom: which puts the top edge just underneath the point aligned to the left edge of the icon. If you displace the point name the text should drop enough to show it
- Left: which puts the top edge aligned with the top of the icon, the text to the left of the icon with the right hand end of the text box just clear of the icon
- Right: which puts the top edge aligned with the top of the icon, the left hand edge of the text just clear of the right hand side of the icon
The amount the box edge is offset is controlled by 8 settings in the opencpn
ini/conf file. You will find them called:
I was not sure if I should make them adjustable on the properties panel or not.
I will look at adding horizontal and vertically centred as an option.
Changing the font in the properties box does not apply the font until the OK button is pressed on the properties box. The word 'Example' should change to show you the font selected.
I will look and see if I can make the background box a little bigger. The information for the size of the box is obtained from the system depending on the font used, so I may have to make that an attribute of either the font (may be difficult) or of the point itself.