freetype-devel
[Top][All Lists]
Advanced

[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: Moazin Khatri
Subject: Re: [ft-devel] GSoC: OT-SVG: Feature requirements from SVG rendering library
Date: Fri, 26 Jul 2019 00:45:08 +0500

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 atlasing is and how it is connected
to bitmap presetting at the loading stage. I'll look that up.

Currently, I use `FT_Outline_Get_BBox' to calculate the bounding box
and this has worked pretty well for almost all the fonts I tested it on. The
presetting for OT-SVG glyphs, by which I guess we mean, allocating the
space for the buffer, setting the width, height, `bitmap_left' and `bitmap_top'
is all done in the SVG renderer module. This can be shifted to the
"glyph loading" side too, at least with the current design, it is possible to do
this, if there's good reason to do so. :)

reply via email to

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