How to get font baseline value? (C++)

SolDirix
Sat, 28 Sep 2019 09:17:11 +0000
Rendering

I am trying to create my own custom text scroll effect. I created a line of characters, where each character is in a single text render component. This is to allow me to modify their locations separately for various text animations. All the text render components are lined up horizontally but they are vertically misaligned. I found out I need to account for the baseline value of the fonts. How do I access this baseline value in C++?

2 posts - 1 participant