JuliaGraphics / FreeTypeAbstraction.jl

A Julian abstraction layer over FreeType.jl
Other
25 stars 20 forks source link

How do we obtain the height and width of a char? #66

Closed davibarreira closed 3 months ago

davibarreira commented 2 years ago

I've been trying to figure out how to obtain the height and the width of a char, but after reading the code, it's not clear to me how to do this. Consider the following char and font:

'X': ASCII/Unicode U+0058 (category Lu: Letter, uppercase)
FTFont (family = cmex10, style = Regular)

I've tried using height_insensitive_boundingbox() to get the dimensions. But it only worked with the width, and not the height.