JuliaGraphics / FreeTypeAbstraction.jl

A Julian abstraction layer over FreeType.jl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

have `renderstring!` return text bound box?

bjarthur opened this issue · comments

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.

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)