Tip position in Arrow-Unicode symbol

Is there any way to find the position of the β€œtip” of the arrow character in Unicode?

For example, I have ↱ and you want to find the position ">" so that I can draw a character at the corresponding y position in my widget.

+7
source share
1 answer

It depends on the font.

You can try blitting the glyph using a library such as FreeType (not sure if Qt has glyph blenders) in the image buffer, and then find the rightmost pixel, which should be the end.

+7
source

All Articles