Description
Is this a bug in companion itself or a module?
- I believe this to be a bug in companion
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Unicode shape-characters such as arrows and "targets" such as “⦾” (U+29BE) do not correctly align vertically in the latest v4.0.0 (companion-win64-4.0.0+7898-main-a5e9a2e7).
Incidentally, compared to v3.5.3 the glyphs are larger when in auto (this may be a good thing - v3.5.3 can't render the largest (44pt) size), but in 4.0 the characters do not align vertically correctly. For example, here, vertical-center alignment is selected:
Here's another example using a smaller (fixed) size showing all three vertical alignments being out of alignment:
Steps To Reproduce
- Create a new button
- Set its text to “⦾” (U+29BE) (w/o quotes)
- Leave or set the font size to Auto (or use a fixed size, as above - but it looks a bit worse with Auto)
- Set text alignment to (center, center)
(See images, above and below)
Expected Behavior
Unicode characters should be centered both horizontally and vertically, as it is in v3.5.3 (and earlier). Here is a screenshot from the latest stable version (v3.5.3) [note, as mentioned above, that "Auto" size is smaller in 3.5.3 than v4.0. This is not the bug, just an observation.]
Environment (please complete the following information)
- OS: Windows 10
- Browser: Chrome 134.0.6998.89
- Companion Version: companion-win64-4.0.0+7898-main-a5e9a2e7
Additional context
Note that "normal" text centers correctly vertically, but the non-latin glyphs have this issue. I've tested this with several "circle-in-circle" characters and arrows such as “➡” (U+27A1), ⬈ U+2B08, etc. as shown in the images above.
P.S. @Julusian, thank you for the short-release action fix! (I came across this bug while successfully testing your fix.)