18 |
Proposed solution |
Proposed solution |
19 |
----------------- |
----------------- |
20 |
|
|
|
(TBD by Tuomas) |
|
21 |
|
Two coordinate systems are passed. The second will correctly default to zero. |
22 |
|
The first coordinate system determines the height of the text and its location |
23 |
|
on the screen. The second coordinate system determines the aspect ratio and the |
24 |
|
direction in which the text continues. |
25 |
|
|
26 |
|
Algorithm:: |
27 |
|
|
28 |
|
a = cs1(0,0); b = cs1(0,1); # Convert left edge of text bbox |
29 |
|
topleft = cs2^-1(a); bottomleft = cs2^-1(b); |
30 |
|
textdir = (topleft - bottomleft).clockwise90() |
31 |
|
|