FreeTypeAbstraction.jl
FreeTypeAbstraction.jl copied to clipboard
have `renderstring!` return text bound box?
currently renderstring!
returns the img that is input. more useful i think would be to return the bounding box of the rendered text. if that makes sense, i could create a PR. let me know.
We do have a boundingbox function now: https://github.com/JuliaGraphics/FreeTypeAbstraction.jl/blob/master/src/layout.jl#L55
Does this work on strings? I was able to get the proper size for chars, but for strings it does not work:
img, extent = FreeTypeAbstraction.renderface(face,"test",100)
hb = FreeTypeAbstraction.inkboundingbox(extent)