Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Position of "tip" in an Arrow-Unicode character

Is there a way one can find the position of the "tip" of an arrow character in unicode?

For example I have ↱ and wanna find the position of the ">", so that I can draw the character at the appropriate y-position in my widget.

like image 527
Johannes Schaub - litb Avatar asked May 03 '12 16:05

Johannes Schaub - litb


Video Answer


1 Answers

It depends on the font.

You could try blitting the glyph using a library like FreeType (not sure if Qt has glyph blitters) to an image buffer and then find the right-most pixel which should be the tip.

like image 107
Pubby Avatar answered Oct 05 '22 11:10

Pubby