GTK2: TextRect and regions
Original Reporter info from Mantis: biloky @biloky
-
Reporter name: Joeny Ang
Original Reporter info from Mantis: biloky @biloky
- Reporter name: Joeny Ang
Description:
TCanvas.TextRect() yields different behaviors if a region is defined. No problems with TextOut().
Test:
In the attached test project, nothing is supposed to be written inside the rectangle when Region is checked.
Observations:
- TextStyle.Clipping = True
If Rect is completely inside the region that is clipped, the text will be displayed, unclipped.
- TextStyle.Clipping = False
After the first TextRect(), the region is removed (?); so succeeding canvas output will have no region defined.
- TextStyle.Clipping = False; TextStyle.Opaque = True
Correct behavior