Re: [ft-devel] Where is FT_Library reference for FT_MM_Var?

2019-07-25 Thread Akira TAGOH
Aha. Thanks! On Thu, Jul 25, 2019 at 9:40 PM Behdad Esfahbod wrote: > > You're not missing anything... > > Face->GlyphSlot->Library... > > On Thu, Jul 25, 2019, 4:47 AM Akira TAGOH wrote: >> >> Hi, >> >> FT_MM_Var instance can be created without FT_Library instance in its >> scope. but

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

2019-07-25 Thread Moazin Khatri
> > 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. > Well, I have no idea what font texture

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

2019-07-25 Thread Alexei Podtelezhnikov
>> 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

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

2019-07-25 Thread Moazin Khatri
> > 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. > By the way, In which context do you say it can be hugely useful? ___ Freetype-devel

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

2019-07-25 Thread Moazin Khatri
> > Cairo has a "recording surface" which > has _cairo_recording_surface_get_bounds(). > You probably mean `ink_extents' or `get_extents'? Some time ago, Toshiya confirmed that even that isn't useful when clipping is used. The bounds aren't tight then. See:

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

2019-07-25 Thread Moazin Khatri
> > 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. > Hi Alexei. Yes. `Resvg' has a feature that does that. `Librsvg' can do that too, at least its latest version can do for sure.

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

2019-07-25 Thread Behdad Esfahbod
Cairo has a "recording surface" which has _cairo_recording_surface_get_bounds(). On Thu, Jul 25, 2019 at 2:43 PM Alexei Podtelezhnikov wrote: > Hi Moazin, > > Can any of SVG libraries return a bounding box without actual > rendering? Do they have something for FT_RendererClass.get_glyph_cbox? >

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

2019-07-25 Thread Alexei Podtelezhnikov
Hi Moazin, 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. Alexei ___ Freetype-devel mailing list Freetype-devel@nongnu.org

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

2019-07-25 Thread Moazin Khatri
Hi, In this email I intend to list the features we require from an SVG rendering library for use in OT-SVG project. Some of these were discussed in the list earlier. But, to report some new findings as well as to put everything in one place, I am listing everything here. 1. The library must

Re: [ft-devel] Where is FT_Library reference for FT_MM_Var?

2019-07-25 Thread Behdad Esfahbod
You're not missing anything... Face->GlyphSlot->Library... On Thu, Jul 25, 2019, 4:47 AM Akira TAGOH wrote: > Hi, > > FT_MM_Var instance can be created without FT_Library instance in its > scope. but FT_Library is required to free it with FT_Done_MM_Var. How > can it be freed to avoid the

[ft-devel] Where is FT_Library reference for FT_MM_Var?

2019-07-25 Thread Akira TAGOH
Hi, FT_MM_Var instance can be created without FT_Library instance in its scope. but FT_Library is required to free it with FT_Done_MM_Var. How can it be freed to avoid the memory leak? Apparently there are no reference in even FT_Face nor FT_MM_Var though. If I'm missing something, please let me