>> 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.

_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to