Commit 5d480c5
committed
Better document the semantics of get_text_width_height_descent.
Including whitespace seems to be the current behavior for agg and makes
right-alignment works as it does. It is also necessary to make e.g. the
currently PR'ed rainbow_text (based on `annotation(..., xycoords=textobj)`
implementation work.
Documenting the behavior is in particular useful for third-party backend
implementers (mplcairo got this wrong previously).1 parent f6a781f commit 5d480c5
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
640 | | - | |
641 | | - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
| |||
0 commit comments