Annotator icon indicating copy to clipboard operation
Annotator copied to clipboard

Center sequence numbers in circle

Open z0rb opened this issue 2 years ago • 1 comments

Hi,

thank you for the nice and simple tool for annotating images.

One small thing that would make sequence numbers better is centering. The numbers are all a bit to the right: image

I wonder if this might also be up to the font. Might be that they are actually centered, but the center of the number is not "optically" the center.

I have installed the Annotator on Debian Testing (Trixie) with Gnome. Found the install command here: https://github.com/phase1geo/Annotator/issues/43#issuecomment-1011803352 Maybe it influences the centering ...

z0rb avatar Sep 10 '23 09:09 z0rb

I'm not exactly sure what is going on here. When I draw the number, I get the text extents (i.e., width and height) from Cairo for the given number so that I can center the text. So the code that is required to center the text is already there, but the text is still not being centered precisely as desired. I can spend some time looking into this issue, but it's a lower priority issue at the moment.

phase1geo avatar Sep 12 '23 00:09 phase1geo

My experience is slightly different. 1 is always off, starting with 2 it gets better.

2024-12-07-035834_2560x1440_scrot

prokoudine avatar Dec 07 '24 02:12 prokoudine