문제

I'm trying to retrieve the cap height for a particular font using freetype2 but I can't find a way to go about it via the API. Does anybody know if this is even possible and if so what the api call is. If not, any other font libraries (java, c, python, etc) that I could use? Thanks!

도움이 되었습니까?

해결책

Correct me if I'm wrong, but this seems to work for me:

int maxHeight = (face_->bbox.yMax >> 6) - (face_->bbox.yMin >> 6);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top