Phil Endecott wrote: > Denis Oliver Kropp wrote: >> Yes, it's important that you can do this: >> >> 1) DrawString( 10,10 ) >> 2) GetStringExtents( &rect ) >> 3) region = translate( rect, 10, 10 ) >> 4) Flip( ®ion ) >> >> In this case ink_rect would be used, but logical_rect should not have a >> different orientation or offset. > > But at present, with fonts for right-to-left scripts, logical_rect can > return a rectangle with negative width. If you used that in your > example above then the region passed to Flip would still have a negative > width, which I guess it would not like (right? - at least, it should be > equally happy with an equivalent rectangle with positive dimensions). > So I think that that is an example of something that would benefit from > the change that I am proposing.
I see, the meaning of ink and logical is quite different already. The ink rectangle should stay as it is, with x/y allowed to be negative, but with positive width and height. Logical should also stay. In unrotated case negative width means right to left, in case of 90 degree clock wise negative height would indicate that. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
