Customizing ellipsization behavior
Submitted by Owen Taylor
Link to original bug (#147608)
Description
There is likely a need to allow the exact details of pango_layout_set_ellipsize() to be customized by the application.
For example, when ellipsizing a filename we might want to ellipsize before the basename rather than at the very end.
- Add another PangoLogAttr for "allowed ellipsization position" to replace the
- Add whatever framework we need to add anyways to allow customizing break positions.
- Change the ellipsization algorithm to deal with the case where no ellipsization is allowed at the very start/end. (find_initial_span() and remove_one_span() need to be made a bit more complex)
Version: 1.5.x