>> I am slowly working through all the places where small changes will be 
>> needed to work with my text rotation feature.

At present, the logical_rect returned by GetStringExtents can have 
negative width (or height?) for non-left-to-right scripts.  Is this a 
useful feature, or is it just how it worked out?

I have to decide whether a rotated (e.g. upside-down) font should 
return a rectangle with negative dimensions in the same way, or not.

The easiest thing for me to do is to always return a "valid" rectangle 
with positive height and width: I simply find the coordinates of the 
four corners of the string and use min and max to get the bounding 
box.  But this would change the current behaviour for right-to-left scripts.

Does anyone rely on the current behaviour of GetStringExtents?


(I will very soon have a complete patch.  If there is anyone who makes 
use of "advanced" text features that I may have broken and would like 
to help test it, please let me know!)

Regards,

Phil.





_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to