[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] GSoC: OT-SVG: Feature requirements from SVG rendering lib

From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] GSoC: OT-SVG: Feature requirements from SVG rendering library
Date: 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.

Moazin wrote:
> 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.

Behdad wrote:
> Cairo has a "recording surface" which has 
> _cairo_recording_surface_get_bounds().

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]