Re: [boost] boost::freetype - extension for boost::gil

Tom Brinkman wrote:
Yes please! One question: can it render text rotated by 90, 180, 270 degrees? Although the way the gil iterators work ought to make this possible, I'm not sure how you could interface between FreeType and that aspect of gil.
I hope that by "clipping" you mean that I can say "render this ten-thousand-pixel-high glypth at (0,-9900) so only the last hundred pixels are visible", and have it do so efficiently. If so, great!
Heres a complete working example of its usage.
It looks rather low-level, presumably close to the native FreeType API. I'd prefer something a little more compact, e.g. image i; Font f("times",35); draw_text(i,0,0,f,"Hello World"); Unless I need to deal with the glyphs or kerning in some non-default way, I'd prefer to not see them. Presumably this sort of thing could be added on top of what you've described.
Can you wrap all this up inside boost::freetype::library and boost::freetype::face classes? Regards, Phil.

On 4/13/07, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
I keep a little gil extension repository on google code. You can checkout the code at http://gil-contributions.googlecode.com/svn/trunk/gil-contributions I don't about the status of the freetype extension with gil 2.0. Tom can probably say more about it. Christian

On 4/13/07, Phil Endecott <spam_from_boost_dev@chezphil.org> wrote:
I'd rather we not call it freetype at all - wrap it up as a generic text renderer, that just happens to use freetype underneath. No reason to expose that it is freetype. Tony
participants (3)
-
Christian Henning
-
Gottlob Frege
-
Phil Endecott