[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] GSoC: OT-SVG: Feature requirements from SVG rendering lib
Re: [ft-devel] GSoC: OT-SVG: Feature requirements from SVG rendering library
Thu, 25 Jul 2019 14:59:17 -0400
>> Can any of SVG libraries return a bounding box without actual
>> rendering? Do they have something for FT_RendererClass.get_glyph_cbox?
>> This can be hugely useful.
> Yes. `Resvg' has a feature that does that. `Librsvg' can do that
> too, at least its latest version can do for sure. However, they don't
> give tight bounding boxes for cases when clipping has been used.
> Cairo has a "recording surface" which has
Cool. FreeType should preset bitmap dimensions at the loading stage.
It does it now for regular outlines at the request of font texture
atlasing folks. Basically, this is a rudimentary rendering operation
and should be handled by each renderer.