Andre DRASZIK wrote: > On Tue, 2008-01-29 at 16:17 +0100, Denis Oliver Kropp wrote: >> Sven Luther wrote: >>> You could also have another mode to crop the text after a certain >> width, >>> altough it is probably possible to do that by cropping surfaces while >>> blitting. >> Just use SetClip(). > > Hm, using SetClip() might look ugly, because a glyph can be clipped > right somewhere inside it's area. So one would even then have to > calculate the string's extents in pixels (which sometimes isn't ideal > either because of kerning). So better not use SetClip() :-)
So you prefer a flag like DSTF_ATOMIC_CLIPPING which keeps the core from blitting the incomplete glyph at the end? -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev