Center Aligned Text is off-center.

The T

New Member
Text (GDI+), when using Custom Text Extents and set to (horizontal) Alignment: Center, is only slightly centered. I have tested this with multiple fonts, and there is some variance with it. When text wrapping is on, this also seemingly leads to different lines having different variance in where center is, which prevents me from simply off-setting the box to correct the visually distracting lack of centering.

On the attached image, both green boxes are the same size.
 

Attachments

  • misaligned.png
    misaligned.png
    7.4 KB · Views: 193

FerretBomb

Active Member
Yep, it's a long-standing bug. It's even more fun because if you enable 'word wrap' then it shuffles around and is off-center a DIFFERENT way/amount. And if you have a newline character at the end of a line (shift+enter) it again scoots the text around yet another way. And the vertical displacement changes too!

It's apparently a low-priority issue, and has been around for years and years at this point. Very irksome, especially if you're trying to set up custom text extents/bounding boxes or using image masks to fit the text into a non-rectangular overlay.
 
Top